SUNRPC: Fix potential races in xprt_lock_write_next()
We have to ensure that the wake up from the waitqueue and the assignment
of xprt->snd_task are atomic. We can do this by assigning the snd_task
while under the waitqueue spinlock.
Signed-off-by:
Trond Myklebust <Trond.Myklebust@netapp.com>
Showing
- fs/nfs/nfs4_fs.h 1 addition, 0 deletionsfs/nfs/nfs4_fs.h
- fs/nfs/nfs4proc.c 8 additions, 5 deletionsfs/nfs/nfs4proc.c
- fs/nfs/nfs4state.c 8 additions, 9 deletionsfs/nfs/nfs4state.c
- include/linux/sunrpc/sched.h 3 additions, 0 deletionsinclude/linux/sunrpc/sched.h
- net/sunrpc/sched.c 33 additions, 9 deletionsnet/sunrpc/sched.c
- net/sunrpc/xprt.c 26 additions, 23 deletionsnet/sunrpc/xprt.c
Please register or sign in to comment