Add NFSD_CMD_UNLOCK_FILESYSTEM as a dedicated netlink command for revoking NFS state under a filesystem path, providing a netlink equivalent of /proc/fs/nfsd/unlock_fs. The command requires a "path" string attribute containing the filesystem path whose state should be released. The handler resolves the path to its superblock, then cancels async copies, releases NLM locks, and revokes NFSv4 state on that superblock.
Showing the changes to include/uapi (1 of 5 files). Show all
Unified · Split
| @@ -211,6 +211,13 @@ enum { · 210 unmodified lines | ||
| 211 | 211 | NFSD_A_UNLOCK_IP_MAX = (__NFSD_A_UNLOCK_IP_MAX - 1) |
| 212 | 212 | }; |
| 213 | 213 | |
| 214 | +enum { | |
| 215 | + NFSD_A_UNLOCK_FILESYSTEM_PATH = 1, | |
| 216 | + | |
| 217 | + __NFSD_A_UNLOCK_FILESYSTEM_MAX, | |
| 218 | + NFSD_A_UNLOCK_FILESYSTEM_MAX = (__NFSD_A_UNLOCK_FILESYSTEM_MAX - 1) | |
| 219 | +}; | |
| 220 | + | |
| 214 | 221 | enum { |
| 215 | 222 | NFSD_CMD_RPC_STATUS_GET = 1, |
| 216 | 223 | NFSD_CMD_THREADS_SET, |
| @@ -228,6 +235,7 @@ enum { · 11 unmodified lines | ||
| 228 | 235 | NFSD_CMD_EXPKEY_SET_REQS, |
| 229 | 236 | NFSD_CMD_CACHE_FLUSH, |
| 230 | 237 | NFSD_CMD_UNLOCK_IP, |
| 238 | + NFSD_CMD_UNLOCK_FILESYSTEM, | |
| 231 | 239 | |
| 232 | 240 | __NFSD_CMD_MAX, |
| 233 | 241 | NFSD_CMD_MAX = (__NFSD_CMD_MAX - 1) |