mbox series

[0/4,v2] nfsd: fix dadlock in move_to_close_lru()

Message ID 20240304044304.3657-1-neilb@suse.de (mailing list archive)
Headers show
Series nfsd: fix dadlock in move_to_close_lru() | expand

Message

NeilBrown March 4, 2024, 4:40 a.m. UTC
This series replaces 
   nfsd: drop st_mutex and rp_mutex before calling move_to_close_lru()
which was recently dropped as a problem was found.
The first two patches rearrange code without important functional change.
The last two address the two relaced problems of two different mutexes which are 
held while waiting and can each trigger a deadlock.

Thanks,
NeilBrown

 [PATCH 1/4] nfsd: move nfsd4_cstate_assign_replay() earlier in open
 [PATCH 2/4] nfsd: perform all find_openstateowner_str calls in the
 [PATCH 3/4] nfsd: replace rp_mutex to avoid deadlock in
 [PATCH 4/4] nfsd: drop st_mutex_mutex before calling