On Tue, Apr 19, 2016 at 12:06 AM, Christoph Hellwig <hch@xxxxxx> wrote: > 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 FRM 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 trivivial to reproduce hangs when running xfstests > (on XFS) over iSER to Linux targets. nit, trivivial --> trivial, please fix Sagi, Christoph, You mentioned stable kernels, can you spot the breakage point? -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html