diff options
| author | Chuck Lever <[email protected]> | 2024-09-21 18:25:37 +0000 |
|---|---|---|
| committer | Chuck Lever <[email protected]> | 2024-09-23 14:37:20 +0000 |
| commit | dc0d0f885aa422f621bc1c2124133eff566b0bc8 (patch) | |
| tree | 65e34a41b553dc42b1ff97862fd41684d14c21d5 /fs/bcachefs/btree_trans_commit.c | |
| parent | xdrgen: Prevent reordering of encoder and decoder functions (diff) | |
| download | kernel-dc0d0f885aa422f621bc1c2124133eff566b0bc8.tar.gz kernel-dc0d0f885aa422f621bc1c2124133eff566b0bc8.zip | |
NFSD: Mark filecache "down" if init fails
NeilBrown says:
> The handling of NFSD_FILE_CACHE_UP is strange. nfsd_file_cache_init()
> sets it, but doesn't clear it on failure. So if nfsd_file_cache_init()
> fails for some reason, nfsd_file_cache_shutdown() would still try to
> clean up if it was called.
Reported-by: NeilBrown <[email protected]>
Fixes: c7b824c3d06c ("NFSD: Replace the "init once" mechanism")
Signed-off-by: Chuck Lever <[email protected]>
Diffstat (limited to 'fs/bcachefs/btree_trans_commit.c')
0 files changed, 0 insertions, 0 deletions
