kernel-hacking-2024-linux-s.../drivers/target
Nicholas Bellinger 95cadace8f target/file: Update hw_max_sectors based on current block_size
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>
Cc: <stable@vger.kernel.org> #3.5+
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
2013-12-19 00:18:54 -08:00
..
iscsi iscsi-target: Fix incorrect np->np_thread NULL assignment 2013-12-19 00:18:25 -08:00
loopback tcm_loop: Implement target reset 2013-10-16 15:42:52 -07:00
sbp target: Remove TF_CIT_TMPL macro 2013-10-16 13:35:02 -07:00
tcm_fc target: Remove TF_CIT_TMPL macro 2013-10-16 13:35:02 -07:00
Kconfig
Makefile target: Add support for EXTENDED_COPY copy offload emulation 2013-09-10 16:48:43 -07:00
target_core_alua.c target_core_alua: Store supported ALUA states 2013-11-20 11:26:37 -08:00
target_core_alua.h target_core_alua: Store supported ALUA states 2013-11-20 11:26:37 -08:00
target_core_configfs.c target_core_configfs: split up ALUA supported states 2013-11-20 11:38:18 -08:00
target_core_device.c target/file: Update hw_max_sectors based on current block_size 2013-12-19 00:18:54 -08:00
target_core_fabric_configfs.c target: Remove TF_CIT_TMPL macro 2013-10-16 13:35:02 -07:00
target_core_fabric_lib.c target: Update copyright ownership/year information to 2013 2013-09-10 20:23:36 -07:00
target_core_file.c target/file: Update hw_max_sectors based on current block_size 2013-12-19 00:18:54 -08:00
target_core_file.h target/file: Update hw_max_sectors based on current block_size 2013-12-19 00:18:54 -08:00
target_core_hba.c target: Update copyright ownership/year information to 2013 2013-09-10 20:23:36 -07:00
target_core_iblock.c target: Pass through I/O topology for block backstores 2013-11-12 13:44:54 -08:00
target_core_iblock.h
target_core_internal.h target: Add percpu refcounting for se_lun access 2013-11-07 14:24:52 -08:00
target_core_pr.c target core: rename (ex,im)plict -> (ex,im)plicit 2013-11-20 11:24:40 -08:00
target_core_pr.h target: Alter core_pr_dump_initiator_port for ease of use 2013-06-14 00:04:31 -07:00
target_core_pscsi.c target/pscsi: fix return value check 2013-10-25 10:42:09 -07:00
target_core_pscsi.h
target_core_rd.c target: Core does not need blkdev.h 2013-11-12 13:45:24 -08:00
target_core_rd.h
target_core_sbc.c Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending 2013-11-22 10:52:03 -08:00
target_core_spc.c target core: rename (ex,im)plict -> (ex,im)plicit 2013-11-20 11:24:40 -08:00
target_core_stat.c target: Convert se_device statistics to atomic_long_t 2013-11-13 18:34:55 -08:00
target_core_tmr.c target: Convert se_device statistics to atomic_long_t 2013-11-13 18:34:55 -08:00
target_core_tpg.c target: Remove write-only stats fields and lock from struct se_node_acl 2013-12-11 10:59:45 -08:00
target_core_transport.c Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending 2013-11-22 10:52:03 -08:00
target_core_ua.c target: Update copyright ownership/year information to 2013 2013-09-10 20:23:36 -07:00
target_core_ua.h target core: rename (ex,im)plict -> (ex,im)plicit 2013-11-20 11:24:40 -08:00
target_core_xcopy.c Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending 2013-11-22 10:52:03 -08:00
target_core_xcopy.h target: Add support for EXTENDED_COPY copy offload emulation 2013-09-10 16:48:43 -07:00