aboutsummaryrefslogtreecommitdiff
path: root/lib/netdev-notifier-error-inject.c
diff options
context:
space:
mode:
authorJeff Layton <[email protected]>2019-08-18 14:18:45 -0400
committerJ. Bruce Fields <[email protected]>2019-08-19 11:00:39 -0400
commit18f6622ebbdea56a83f8e553c159ce2d62d3ad0c (patch)
treedb96f78e192180c2b3460c426e2f7864e802a9d2 /lib/netdev-notifier-error-inject.c
parentf69d6d8eef7807f8d937b81da24bebd2e926e4d2 (diff)
locks: create a new notifier chain for lease attempts
With the new file caching infrastructure in nfsd, we can end up holding files open for an indefinite period of time, even when they are still idle. This may prevent the kernel from handing out leases on the file, which is something we don't want to block. Fix this by running a SRCU notifier call chain whenever on any lease attempt. nfsd can then purge the cache for that inode before returning. Since SRCU is only conditionally compiled in, we must only define the new chain if it's enabled, and users of the chain must ensure that SRCU is enabled. Signed-off-by: Jeff Layton <[email protected]> Signed-off-by: Trond Myklebust <[email protected]> Signed-off-by: Trond Myklebust <[email protected]> Signed-off-by: J. Bruce Fields <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions