aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ubifs/commit.c
diff options
context:
space:
mode:
authorChristophe Vu-Brugier <[email protected]>2015-03-19 13:30:13 +0000
committerNicholas Bellinger <[email protected]>2015-03-20 06:26:46 +0000
commit9bc6548f372d8c829235095d91de99d8df79db6e (patch)
tree012b832b58932d5966c17ca9b8998f1550152c8d /fs/ubifs/commit.c
parenttarget: Fix virtual LUN=0 target_configure_device failure OOPs (diff)
downloadkernel-9bc6548f372d8c829235095d91de99d8df79db6e.tar.gz
kernel-9bc6548f372d8c829235095d91de99d8df79db6e.zip
target: do not reject FUA CDBs when write cache is enabled but emulate_write_cache is 0
A check that rejects a CDB with FUA bit set if no write cache is emulated was added by the following commit: fde9f50 target: Add sanity checks for DPO/FUA bit usage The condition is as follows: if (!dev->dev_attrib.emulate_fua_write || !dev->dev_attrib.emulate_write_cache) However, this check is wrong if the backend device supports WCE but "emulate_write_cache" is disabled. This patch uses se_dev_check_wce() (previously named spc_check_dev_wce) to invoke transport->get_write_cache() if the device has a write cache or check the "emulate_write_cache" attribute otherwise. Reported-by: Christoph Hellwig <[email protected]> Signed-off-by: Christophe Vu-Brugier <[email protected]> Signed-off-by: Nicholas Bellinger <[email protected]>
Diffstat (limited to 'fs/ubifs/commit.c')
0 files changed, 0 insertions, 0 deletions