]> git.karo-electronics.de Git - karo-tx-linux.git/commit
target/iblock: pass WRITE_SAME to device if possible
authorMike Christie <mchristi@redhat.com>
Wed, 24 Feb 2016 19:56:33 +0000 (13:56 -0600)
committerNicholas Bellinger <nab@linux-iscsi.org>
Sat, 5 Mar 2016 07:36:00 +0000 (23:36 -0800)
commitcf12009927899a7ba819547b7b978972c03e12da
treeb312de19db1306319b6e00c8dbf3507ff77c69cd
parent2866108f1e3bcfe6ec140787277d6309f0b6626c
target/iblock: pass WRITE_SAME to device if possible

This patch has iblock pass the WRITE_SAME command to
the device for offloading if possible. It is similar to what is
done for UNMAP/discards, except that we export a large max write same
value to the initiator, and then rely on the block layer to
break it up into multiple requests if it cannot fit into one.

v2.

- Drop file backend changes and move helper function to
iblock backend.

Signed-off-by: Mike Christie <mchristi@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_iblock.c