summaryrefslogtreecommitdiffstats
path: root/drivers/phy/phy-core.c
diff options
context:
space:
mode:
authorNicholas Bellinger2013-12-12 21:24:11 +0100
committerNicholas Bellinger2013-12-19 09:18:54 +0100
commit95cadace8f3959282e76ebf8b382bd0930807d2c (patch)
tree2b8773e84f7dc600eba50665d18377f2f130b1e8 /drivers/phy/phy-core.c
parentiser-target: Move INIT_WORK setup into isert_create_device_ib_res (diff)
downloadkernel-qcow2-linux-95cadace8f3959282e76ebf8b382bd0930807d2c.tar.gz
kernel-qcow2-linux-95cadace8f3959282e76ebf8b382bd0930807d2c.tar.xz
kernel-qcow2-linux-95cadace8f3959282e76ebf8b382bd0930807d2c.zip
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>
Diffstat (limited to 'drivers/phy/phy-core.c')
0 files changed, 0 insertions, 0 deletions