The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH 0/2] NFSv4/flexfiles: support loosely coupled data servers
@ 2026-07-08  7:44 Jeuk Kim
  2026-07-08  7:44 ` [PATCH 1/2] NFSv4/flexfiles: fix NULL dereference for NFSv4.0 " Jeuk Kim
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jeuk Kim @ 2026-07-08  7:44 UTC (permalink / raw)
  To: Trond Myklebust, Anna Schumaker
  Cc: linux-nfs, linux-kernel, Tigran Mkrtchyan, hui81.qi, j-young.choi,
	peng.yun, qian01.li, xing1.he, jeuk20.kim

RFC 8435 allows a flexfiles data server to be loosely coupled, i.e. an
NFS server that does not advertise EXCHGID4_FLAG_USE_PNFS_DS via
EXCHANGE_ID. The client currently ignores the ffdv_tightly_coupled flag
and treats every DS as tightly coupled, so NFSv4.1+ I/O to a loosely
coupled DS fails during DS setup.

Patch 2 threads the decoded tightly_coupled flag down to the DS connect
path and, when it is false, skips the NFS_CS_PNFS flag and the
is_ds_client() check.

Patch 1 fixes pre-existing NFSv4.0 DS crashes on the same path (the DS
client has no session).

Jeuk Kim (2):
  NFSv4/flexfiles: fix NULL dereference for NFSv4.0 data servers
  NFSv4/flexfiles: support loosely coupled data servers

 fs/nfs/filelayout/filelayoutdev.c         |  2 +-
 fs/nfs/flexfilelayout/flexfilelayout.c    |  3 ++-
 fs/nfs/flexfilelayout/flexfilelayoutdev.c |  3 ++-
 fs/nfs/internal.h                         |  3 ++-
 fs/nfs/nfs4client.c                       |  5 +++--
 fs/nfs/nfs4session.c                      | 21 ++++++++++++++-------
 fs/nfs/nfs4session.h                      |  3 ++-
 fs/nfs/pnfs.h                             |  3 ++-
 fs/nfs/pnfs_nfs.c                         | 14 +++++++++-----
 9 files changed, 37 insertions(+), 20 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-08-06 12:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-08  7:44 [PATCH 0/2] NFSv4/flexfiles: support loosely coupled data servers Jeuk Kim
2026-07-08  7:44 ` [PATCH 1/2] NFSv4/flexfiles: fix NULL dereference for NFSv4.0 " Jeuk Kim
2026-07-08  7:44 ` [PATCH 2/2] NFSv4/flexfiles: support loosely coupled " Jeuk Kim
2026-08-06 12:19 ` [PATCH 0/2] " Mkrtchyan, Tigran

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox