[PATCH v8 0/3] vfs: expose delegation support to userland

Jeff Layton posted 3 patches 1 week, 5 days ago
fs/fcntl.c                 |  13 +++
fs/locks.c                 | 199 ++++++++++++++++++++++++++++-----------------
fs/nfsd/nfs4layouts.c      |  11 ++-
fs/nfsd/nfs4state.c        |   7 ++
include/linux/filelock.h   |  13 +++
include/uapi/linux/fcntl.h |  16 ++++
6 files changed, 181 insertions(+), 78 deletions(-)
[PATCH v8 0/3] vfs: expose delegation support to userland
Posted by Jeff Layton 1 week, 5 days ago
Stephen hit a couple of problems while merging the last patch in the
directory delegation series, and I found some problems while testing
userland delegations (more fstests forthcoming).

Christian, could you drop the last patch in
vfs-6.19.directory.delegations, and pick up these patches? They should
address all of the problems Stephen reported and make userland
delegation support on files work properly. Let me know if you'd rather I
resend a whole new directory delegation series instead.

To: Alexander Viro <viro@zeniv.linux.org.uk>
To: Christian Brauner <brauner@kernel.org>
To: Jan Kara <jack@suse.cz>
To: Chuck Lever <chuck.lever@oracle.com>
To: Alexander Aring <alex.aring@gmail.com>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: linux-fsdevel@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Jeff Layton <jlayton@kernel.org>

Changes in v8:
- split out lease_dispose_list() helper
- add new ->lm_open_conflict() lease_manager_operation
- Link to v7: https://lore.kernel.org/r/20251117-dir-deleg-ro-v7-1-f8bfd13a3791@kernel.org

Changes in v7:
- have fcntl.h include proper headers for stdint.h integers
- move comment above fcntl_getlease() to the proper place
- add a kerneldoc comment over fcntl_getdeleg()

---
Jeff Layton (3):
      vfs: expose delegation support to userland
      filelock: add lease_dispose_list() helper
      filelock: allow lease_managers to dictate what qualifies as a conflict

 fs/fcntl.c                 |  13 +++
 fs/locks.c                 | 199 ++++++++++++++++++++++++++++-----------------
 fs/nfsd/nfs4layouts.c      |  11 ++-
 fs/nfsd/nfs4state.c        |   7 ++
 include/linux/filelock.h   |  13 +++
 include/uapi/linux/fcntl.h |  16 ++++
 6 files changed, 181 insertions(+), 78 deletions(-)
---
base-commit: 5c4a3c4961067120fbf6d35622c2e839f9ceba12
change-id: 20251117-dir-deleg-ro-2e6247a1a0a9

Best regards,
-- 
Jeff Layton <jlayton@kernel.org>