Linux NFS development
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Offer write delegations for O_WRONLY opens
@ 2024-07-28 20:41 Sagi Grimberg
  2024-07-28 20:41 ` [PATCH v2 1/3] nfsd: don't assume copy notify when preprocessing the stateid Sagi Grimberg
                   ` (2 more replies)
  0 siblings, 3 replies; 23+ messages in thread
From: Sagi Grimberg @ 2024-07-28 20:41 UTC (permalink / raw)
  To: Chuck Lever; +Cc: Dai Ngo, Olga Kornievskaia, Jeff Layton, linux-nfs

Since some known workloads do open files with O_WRONLY can benefit
from write delegations, we want to allow them.

The patch set is based on the initial attempt by Dai Ngo in:
https://lore.kernel.org/linux-nfs/1688089960-24568-3-git-send-email-dai.ngo@oracle.com/

THe problem back then was a reported breakage in pynfs test that exercises
reads using anonymous stateids.

Changes from v1:
- collected review tags
- remove f_mode tinkering and instead open locally a file as rw in case
  the client opened the file as wronly and got a write delegation
- splitted the anonymous stateid read conflict handling to a separate patch

Sagi Grimberg (3):
  nfsd: don't assume copy notify when preprocessing the stateid
  nfsd: Offer write delegations for o_wronly opens
  nfsd: resolve possible conflicts of reads using special stateids and
    write delegations

 fs/nfsd/nfs4proc.c  | 25 +++++++++++-
 fs/nfsd/nfs4state.c | 95 ++++++++++++++++++++++++++++++++-------------
 fs/nfsd/state.h     |  2 +
 fs/nfsd/xdr4.h      |  2 +
 4 files changed, 95 insertions(+), 29 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2024-07-30 18:45 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-28 20:41 [PATCH v2 0/3] Offer write delegations for O_WRONLY opens Sagi Grimberg
2024-07-28 20:41 ` [PATCH v2 1/3] nfsd: don't assume copy notify when preprocessing the stateid Sagi Grimberg
2024-07-28 20:41 ` [PATCH v2 2/3] nfsd: Offer write delegations for o_wronly opens Sagi Grimberg
2024-07-29 12:10   ` Jeff Layton
2024-07-29 12:58     ` Sagi Grimberg
2024-07-29 13:10       ` Jeff Layton
2024-07-29 13:39         ` Sagi Grimberg
2024-07-29 13:52           ` Chuck Lever
2024-07-29 14:05             ` Sagi Grimberg
2024-07-29 14:10               ` Chuck Lever
2024-07-29 14:21             ` Jeff Layton
2024-07-29 14:12           ` Jeff Layton
2024-07-29 16:12             ` Dai Ngo
2024-07-30 18:45             ` Chuck Lever
2024-07-29 12:26   ` Jeff Layton
2024-07-29 12:59     ` Sagi Grimberg
2024-07-29 13:17       ` Jeff Layton
2024-07-29 13:37         ` Sagi Grimberg
2024-07-29 22:41   ` kernel test robot
2024-07-28 20:41 ` [PATCH v2 3/3] nfsd: resolve possible conflicts of reads using special stateids and write delegations Sagi Grimberg
2024-07-29  0:35   ` kernel test robot
2024-07-29  6:22     ` Sagi Grimberg
2024-07-29  7:55       ` Miguel Ojeda

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