]> git.baikalelectronics.ru Git - kernel.git/commit
target/sbc: Seperate WRITE_SAME based on UNMAP flag in sbc_ops
authorNicholas Bellinger <nab@linux-iscsi.org>
Thu, 8 Nov 2012 04:01:10 +0000 (20:01 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 15 Nov 2012 20:04:52 +0000 (12:04 -0800)
commit30a48ac52680d6d477374c4d4ea5d61293979f45
tree7c003f3c6e865cc0eaf4df43683a37802ce4cb5d
parent43caf3148c8d447146d62246efefed7af82a059a
target/sbc: Seperate WRITE_SAME based on UNMAP flag in sbc_ops

This patch adds a new sbc_ops->execute_write_same_unmap() caller for use
with WRITE_SAME w/ UNMAP=1, and performs the ->execute_cmd() setup based
this bit within sbc_setup_write_same() code.

Also, makes the changes in sbc_parse_cdb() to handle a sense_reason_t
return from sbc_setup_write_same() on error.

Reported-by: Christoph Hellwig <hch@lst.de>
Cc: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_sbc.c
include/target/target_core_backend.h