linux_dsm_epyc7002/drivers/infiniband/ulp
Christoph Hellwig 9c674815d3 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>
2016-05-05 12:41:24 -04:00
..
ipoib IB/ipoib: Allow mcast packets from other VFs 2016-03-21 17:13:14 -04:00
iser IB/iser: Fix max_sectors calculation 2016-05-05 12:41:24 -04:00
isert iser-target: Use ib_drain_qp 2016-03-30 20:05:15 -07:00
srp IB/srp: Use ib_drain_rq() 2016-02-29 17:10:27 -05:00
srpt Round two of 4.6 merge window patches 2016-03-22 15:48:44 -07:00
Makefile IB: Allow build of hw/ and ulp/ subdirectories independently 2014-06-02 14:51:12 -07:00