]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md: raid1,10: Handle REQ_WRITE_SAME flag in write bios
authorJoe Lawrence <Joe.Lawrence@stratus.com>
Thu, 24 Jan 2013 15:16:02 +0000 (10:16 -0500)
committerNeilBrown <neilb@suse.de>
Mon, 4 Feb 2013 22:24:36 +0000 (09:24 +1100)
commitc3e7525db53a82b380f975931cd39d4ea9cdb131
treef8a8284962b69857ef1e28cc4ddd87e14865c6fd
parent0ecfa11f08c79be05eb00bba537e764e6672774d
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