md/raid1: round up to bdev_logical_block_size in narrow_write_error
authorNate Dailey <nate.dailey@stratus.com>
Thu, 12 Feb 2015 17:02:09 +0000 (12:02 -0500)
committerNeilBrown <neilb@suse.de>
Mon, 16 Feb 2015 03:49:26 +0000 (14:49 +1100)
commitab713cdc6f70da62c254c4acf77a0cfcda87b7f5
treeec235d733d5b52006e31343e79acede6c2578f8b
parent53a6ab4d3f6d6dc87ec8f14998b4b5536ee2968c
md/raid1: round up to bdev_logical_block_size in narrow_write_error

This modifies raid1's narrow_write_error to round up block_sectors to the
device's logical block size.

This prevents sd complaining about "Bad block number requested" for non-512-byte
sector disks.

Signed-off-by: Nate Dailey <nate.dailey@stratus.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid1.c