From: Nicholas Bellinger Date: Sat, 14 Feb 2015 01:32:11 +0000 (+0000) Subject: target: Perform PROTECT sanity checks for WRITE_SAME X-Git-Tag: fixes-v4.0-rc1~29^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=afd73f1b60fc5883ea4982f68e9522e77b28f1e5;p=pandora-kernel.git target: Perform PROTECT sanity checks for WRITE_SAME This patch adds a call to sbc_check_prot() within sbc_setup_write_same() code to perform the various protection releated sanity checks, including failing if WRPROTECT or RDPROTECT is set for a backend device that has not advertised support for T10-PI. Also, since WRITE_SAME + T10-PI is currently not supported by IBLOCK + FILEIO backends, go ahead and fail if ->execute_write_same() is invoked with a non zero cmd->prot_op. Cc: Martin Petersen Cc: Sagi Grimberg Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed