The patch titled dm table: pass device's data start to blk_stack_limits() in bytes has been added to the -mm tree. Its filename is dm-table-pass-devices-data-start-to-blk_stack_limits-in-bytes.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: dm table: pass device's data start to blk_stack_limits() in bytes From: Mike Snitzer <snitzer@xxxxxxxxxx> The offset passed to blk_stack_limits() must be in bytes not sectors. Fixes false warnings like the following: device-mapper: table: 254:1: target device sda6 is misaligned Addresses http://bugzilla.kernel.org/show_bug.cgi?id=13641 Signed-off-by: Mike Snitzer <snitzer@xxxxxxxxxx> Reported-by: Frans Pop <elendil@xxxxxxxxx> Tested-by: Frans Pop <elendil@xxxxxxxxx> Cc: Alasdair G Kergon <agk@xxxxxxxxxx> Cc: Jean-Luc Coulon <jean.luc.coulon@xxxxxxxxx> Cc: "Rafael J. Wysocki" <rjw@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/md/dm-table.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN drivers/md/dm-table.c~dm-table-pass-devices-data-start-to-blk_stack_limits-in-bytes drivers/md/dm-table.c --- a/drivers/md/dm-table.c~dm-table-pass-devices-data-start-to-blk_stack_limits-in-bytes +++ a/drivers/md/dm-table.c @@ -495,7 +495,7 @@ int dm_set_device_limits(struct dm_targe return 0; } - if (blk_stack_limits(limits, &q->limits, start) < 0) + if (blk_stack_limits(limits, &q->limits, start << 9) < 0) DMWARN("%s: target device %s is misaligned", dm_device_name(ti->table->md), bdevname(bdev, b)); _ Patches currently in -mm which might be from snitzer@xxxxxxxxxx are dm-table-pass-devices-data-start-to-blk_stack_limits-in-bytes.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html