NeilBrown 693486d5f8 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>
2022-03-13 12:59:36 -04:00
..
2022-01-22 08:33:37 +02:00
2021-09-04 10:25:26 -07:00
2020-03-16 12:04:33 -04:00
2022-01-22 08:33:37 +02:00
2021-07-08 14:03:23 -04:00
2022-01-16 07:42:58 +02:00
2021-08-10 14:18:35 -04:00