android_kernel_google_msm/drivers/target
Nicholas Bellinger 230a0c3b58 target/file: Re-enable optional fd_buffered_io=1 operation
commit b32f4c7ed8 upstream.

This patch re-adds the ability to optionally run in buffered FILEIO mode
(eg: w/o O_DSYNC) for device backends in order to once again use the
Linux buffered cache as a write-back storage mechanism.

This logic was originally dropped with mainline v3.5-rc commit:

commit a4dff3043c
Author: Nicholas Bellinger <nab@linux-iscsi.org>
Date:   Wed May 30 16:25:41 2012 -0700

    target/file: Use O_DSYNC by default for FILEIO backends

This difference with this patch is that fd_create_virtdevice() now
forces the explicit setting of emulate_write_cache=1 when buffered FILEIO
operation has been enabled.

(v2: Switch to FDBD_HAS_BUFFERED_IO_WCE + add more detailed
     comment as requested by hch)

Reported-by: Ferry <iscsitmp@bananateam.nl>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Cc: Li Zefan <lizefan@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-02-20 10:45:33 -08:00
..
iscsi target/iscsi: Fix network portal creation race 2014-02-06 11:05:48 -08:00
loopback
tcm_fc tcm_fc: Do not report target role when target is not defined 2013-01-21 11:45:14 -08:00
Kconfig
Makefile
target_core_alua.c target: Fix incorrect fallthrough of ALUA Standby/Offline/Transition CDBs 2013-04-16 21:27:26 -07:00
target_core_alua.h
target_core_cdb.c target: Fix trailing ASCII space usage in INQUIRY vendor+model 2013-09-07 21:58:16 -07:00
target_core_configfs.c target: Don't return success from module_init() if setup fails 2012-11-17 13:15:55 -08:00
target_core_device.c target: Fix lookup of dynamic NodeACLs during cached demo-mode operation 2013-03-04 06:06:39 +08:00
target_core_fabric_configfs.c target: Add missing mapped_lun bounds checking during make_mappedlun setup 2013-03-04 06:06:39 +08:00
target_core_fabric_lib.c
target_core_file.c target/file: Re-enable optional fd_buffered_io=1 operation 2014-02-20 10:45:33 -08:00
target_core_file.h target/file: Re-enable optional fd_buffered_io=1 operation 2014-02-20 10:45:33 -08:00
target_core_hba.c
target_core_iblock.c
target_core_iblock.h
target_core_internal.h target: Fix lookup of dynamic NodeACLs during cached demo-mode operation 2013-03-04 06:06:39 +08:00
target_core_pr.c
target_core_pr.h
target_core_pscsi.c target/pscsi: Fix page increment 2013-03-14 11:29:42 -07:00
target_core_pscsi.h
target_core_rd.c
target_core_rd.h
target_core_stat.c
target_core_tmr.c target: Fix incorrect usage of nested IRQ spinlocks in ABORT_TASK path 2012-11-17 13:15:55 -08:00
target_core_tpg.c target: Fix lookup of dynamic NodeACLs during cached demo-mode operation 2013-03-04 06:06:39 +08:00
target_core_transport.c target: Add link_magic for fabric allow_link destination target_items 2013-01-21 11:45:24 -08:00
target_core_ua.c
target_core_ua.h