diff options
author | NeilBrown <neilb@suse.de> | 2022-03-07 10:41:45 +1100 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2022-03-13 12:59:36 -0400 |
commit | 693486d5f8951780a9bb31f7fe935171a80010e4 (patch) | |
tree | 2a5300915884d15ad3bde2dd8e3c26de6ed02cac /fs/nfs | |
parent | c265de257f558a05c1859ee9e3fed04883b9ec0e (diff) | |
download | linux-693486d5f8951780a9bb31f7fe935171a80010e4.tar.gz linux-693486d5f8951780a9bb31f7fe935171a80010e4.tar.bz2 linux-693486d5f8951780a9bb31f7fe935171a80010e4.zip |
SUNRPC: change locking for xs_swap_enable/disable
It is not in general safe to wait for XPRT_LOCKED to clear.
A wakeup is only sent when
- connection completes
- sock close completes
so during normal operations, this can wait indefinitely.
The event we need to protect against is ->inet being set to NULL, and
that happens under the recv_mutex lock.
So drop the handlign of XPRT_LOCKED and use recv_mutex instead.
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs/nfs')
0 files changed, 0 insertions, 0 deletions