From: Nicholas Bellinger Date: Thu, 8 Nov 2012 04:01:10 +0000 (-0800) Subject: target/sbc: Seperate WRITE_SAME based on UNMAP flag in sbc_ops X-Git-Tag: v3.8-rc1~94^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd063bef414c51d79b9c6ea7a8ef8f9d319529bc;p=pandora-kernel.git 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 Cc: Martin K. Petersen Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed