summaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_generic.c
diff options
context:
space:
mode:
authorChristoph Hellwig2016-04-18 23:06:28 +0200
committerDoug Ledford2016-05-05 18:41:24 +0200
commit9c674815d346305068b27bf03b5e86b659a1b111 (patch)
treeb512f798dbdfb99a3cfb7ca971b04fc5c52a9000 /sound/pci/hda/hda_generic.c
parentRDMA/nes: don't leak skb if carrier down (diff)
downloadkernel-qcow2-linux-9c674815d346305068b27bf03b5e86b659a1b111.tar.gz
kernel-qcow2-linux-9c674815d346305068b27bf03b5e86b659a1b111.tar.xz
kernel-qcow2-linux-9c674815d346305068b27bf03b5e86b659a1b111.zip
IB/iser: Fix max_sectors calculation
iSER currently has a couple places that set max_sectors in either the host template or SCSI host, and all of them get it wrong. This patch instead uses a single assignment that (hopefully) gets it right: the max_sectors value must be derived from the number of segments in the FR or FMR structure, but actually be one lower than the page size multiplied by the number of sectors, as it has to handle the case of non-aligned I/O. Without this I get trivial to reproduce hangs when running xfstests (on XFS) over iSER to Linux targets. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Max Gurtovoy <maxg@mellanox.com> Acked-by: Sagi Grimberg <sagi@grimberg.me> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'sound/pci/hda/hda_generic.c')
0 files changed, 0 insertions, 0 deletions