summaryrefslogtreecommitdiffstats
path: root/block/blk-settings.c
diff options
context:
space:
mode:
authorNicholas Bellinger <nab@linux-iscsi.org>2011-07-28 00:07:03 -0700
committerNicholas Bellinger <nab@linux-iscsi.org>2011-08-22 19:26:21 +0000
commit706d5860969b3b24d65d9a57bd3bb5e4a1419c08 (patch)
treea6293f322a5327d3c317c09197b33d66e22d010e /block/blk-settings.c
parent16ab8e60a0ebc22cfbe61d84e620457a15f3a0bc (diff)
downloadlinux-stable-706d5860969b3b24d65d9a57bd3bb5e4a1419c08.tar.gz
linux-stable-706d5860969b3b24d65d9a57bd3bb5e4a1419c08.tar.bz2
linux-stable-706d5860969b3b24d65d9a57bd3bb5e4a1419c08.zip
target: Add WRITE_SAME (10) parsing and refactor passthrough checks
This patch adds initial WRITE_SAME (10) w/ UNMAP=1 support following updates in sbcr26 to allow UNMAP=1 for the non 16 + 32 byte CDB case. It also refactors current pSCSI passthrough passthrough checks into target_check_write_same_discard() ahead of UNMAP=0 w/ write payload support into target_core_iblock.c. This includes the support for handling WRITE_SAME in transport_emulate_control_cdb(), and converts target_emulate_write_same to accept num_blocks directly for WRITE_SAME, WRITE_SAME_16 and WRITE_SAME_32. Reported-by: Eric Seppanen <eric@purestorage.com> Cc: Roland Dreier <roland@purestorage.com> Cc: Christoph Hellwig <hch@lst.de> Signed-off-by: Nicholas Bellinger <nab@risingtidesystems.com>
Diffstat (limited to 'block/blk-settings.c')
0 files changed, 0 insertions, 0 deletions