]> Gentwo Git Trees - linux/.git/commit
NFSv4/flexfiles: Fix layout merge mirror check.
authorJonathan Curley <jcurley@purestorage.com>
Mon, 8 Sep 2025 17:35:16 +0000 (17:35 +0000)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 8 Sep 2025 18:37:55 +0000 (14:37 -0400)
commitdd2fa82473453661d12723c46c9f43d9876a7efd
tree3ae0febfe7096d124ff2b5726f7c7935e657779a
parent9559d2fffd4f9b892165eed48198a0e5cb8504e6
NFSv4/flexfiles: Fix layout merge mirror check.

Typo in ff_lseg_match_mirrors makes the diff ineffective. This results
in merge happening all the time. Merge happening all the time is
problematic because it marks lsegs invalid. Marking lsegs invalid
causes all outstanding IO to get restarted with EAGAIN and connections
to get closed.

Closing connections constantly triggers race conditions in the RDMA
implementation...

Fixes: 660d1eb22301c ("pNFS/flexfile: Don't merge layout segments if the mirrors don't match")
Signed-off-by: Jonathan Curley <jcurley@purestorage.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/flexfilelayout/flexfilelayout.c