android_kernel_samsung_msm8976/drivers/target
Nicholas Bellinger 480da400c3 target/file: Update hw_max_sectors based on current block_size
commit 95cadace8f3959282e76ebf8b382bd0930807d2c upstream.

This patch allows FILEIO to update hw_max_sectors based on the current
max_bytes_per_io.  This is required because vfs_[writev,readv]() can accept
a maximum of 2048 iovecs per call, so the enforced hw_max_sectors really
needs to be calculated based on block_size.

This addresses a >= v3.5 bug where block_size=512 was rejecting > 1M
sized I/O requests, because FD_MAX_SECTORS was hardcoded to 2048 for
the block_size=4096 case.

(v2: Use max_bytes_per_io instead of ->update_hw_max_sectors)

Reported-by: Henrik Goldman <hg@x-formation.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-01-09 12:24:20 -08:00
..
iscsi iscsi-target: Fix-up all zero data-length CDBs with R/W_BIT set 2014-01-09 12:24:20 -08:00
loopback
sbp
tcm_fc
Kconfig
Makefile
target_core_alua.c target: Fix >= v3.9+ regression in PR APTPL + ALUA metadata write-out 2013-09-26 17:18:27 -07:00
target_core_alua.h
target_core_configfs.c
target_core_device.c target/file: Update hw_max_sectors based on current block_size 2014-01-09 12:24:20 -08:00
target_core_fabric_configfs.c
target_core_fabric_lib.c
target_core_file.c target/file: Update hw_max_sectors based on current block_size 2014-01-09 12:24:20 -08:00
target_core_file.h target/file: Update hw_max_sectors based on current block_size 2014-01-09 12:24:20 -08:00
target_core_hba.c
target_core_iblock.c
target_core_iblock.h
target_core_internal.h
target_core_pr.c target: Fix >= v3.9+ regression in PR APTPL + ALUA metadata write-out 2013-09-26 17:18:27 -07:00
target_core_pr.h
target_core_pscsi.c target/pscsi: fix return value check 2013-11-13 12:05:32 +09:00
target_core_pscsi.h
target_core_rd.c
target_core_rd.h
target_core_sbc.c
target_core_spc.c target: Fix trailing ASCII space usage in INQUIRY vendor+model 2013-09-07 22:09:59 -07:00
target_core_stat.c
target_core_tmr.c
target_core_tpg.c
target_core_transport.c
target_core_ua.c
target_core_ua.h