md: raid1,10: Handle REQ_WRITE_SAME flag in write bios
authorJoe Lawrence <Joe.Lawrence@stratus.com>
Thu, 21 Feb 2013 02:28:09 +0000 (13:28 +1100)
committerNeilBrown <neilb@suse.de>
Tue, 26 Feb 2013 00:55:21 +0000 (11:55 +1100)
commitc8dc9c654794a765ca61baed07f84ed8aaa7ca8c
tree81dea728ef7bcaa01fb7e06c1e731d76dd258dff
parentbbfa57c0f2243a7c31fd248d22e9861a2802cad5
md: raid1,10: Handle REQ_WRITE_SAME flag in write bios

Set mddev queue's max_write_same_sectors to its chunk_sector value (before
disk_stack_limits merges the underlying disk limits.)  With that in place,
be sure to handle writes coming down from the block layer that have the
REQ_WRITE_SAME flag set.  That flag needs to be copied into any newly cloned
write bio.

Signed-off-by: Joe Lawrence <joe.lawrence@stratus.com>
Acked-by: "Martin K. Petersen" <martin.petersen@oracle.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid1.c
drivers/md/raid10.c