target: Fail WRITE_SAME w/ UNMAP=1 when emulate_tpws=0
authorNicholas Bellinger <nab@linux-iscsi.org>
Sat, 14 Feb 2015 01:56:19 +0000 (01:56 +0000)
committerNicholas Bellinger <nab@linux-iscsi.org>
Sat, 14 Feb 2015 02:54:40 +0000 (02:54 +0000)
This patch adds a check within sbc_setup_write_same() to fail a
WRITE_SAME w/ UNMAP=1 op, if the backend device has emulate_tpws
disabled.

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

Simple merge