linux_dsm_epyc7002/drivers/infiniband/ulp/iser
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
..
iscsi_iser.c IB/iser: Fix max_sectors calculation 2016-05-05 12:41:24 -04:00
iscsi_iser.h IB/iser: Use ib_drain_sq() 2016-02-29 17:10:27 -05:00
iser_initiator.c IB/iser: Use ib_drain_sq() 2016-02-29 17:10:27 -05:00
iser_memory.c IB/iser: Support the remote invalidation exception 2015-12-26 19:27:10 -05:00
iser_verbs.c Merge branches 'mlx4', 'mlx5' and 'ocrdma' into k.o/for-4.6 2016-03-16 13:38:28 -04:00
Kconfig Update broken web addresses in the kernel. 2010-10-18 11:03:14 +02:00
Makefile IB/iser: iSER Kconfig and Makefile 2006-06-22 07:51:14 -07:00