Revision 9c674815d346305068b27bf03b5e86b659a1b111 authored by Christoph Hellwig on 18 April 2016, 21:06:28 UTC, committed by Doug Ledford on 05 May 2016, 16:41:24 UTC
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>
1 parent 4c8bb95
History
File Mode Size
.gitignore -rw-r--r-- 44 bytes
Kconfig -rw-r--r-- 2.3 KB
Makefile -rw-r--r-- 3.7 KB
system_certificates.S -rw-r--r-- 917 bytes
system_keyring.c -rw-r--r-- 4.0 KB

back to top