From: Andy Grover Date: Wed, 14 May 2014 22:48:06 +0000 (-0700) Subject: target: Don't allow setting WC emulation if device doesn't support X-Git-Tag: omap-for-v3.16/fixes-against-rc1~172^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07b8dae38b09bcfede7e726f172e39b5ce8390d9;p=pandora-kernel.git target: Don't allow setting WC emulation if device doesn't support Just like for pSCSI, if the transport sets get_write_cache, then it is not valid to enable write cache emulation for it. Return an error. see https://bugzilla.redhat.com/show_bug.cgi?id=1082675 Reviewed-by: Chris Leech Signed-off-by: Andy Grover Cc: stable@vger.kernel.org # 3.10+ Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed