SUNRPC: Fix a potential race in rpc_wake_up_task()
Use RCU to ensure that we can safely call rpc_finish_wakeup after we've
called __rpc_do_wake_up_task. If not, there is a theoretical race, in which
the rpc_task finishes executing, and gets freed first.
Signed-off-by:
Trond Myklebust <Trond.Myklebust@netapp.com>
Showing
- fs/nfs/read.c 7 additions, 1 deletionfs/nfs/read.c
- fs/nfs/write.c 16 additions, 4 deletionsfs/nfs/write.c
- include/linux/nfs_fs.h 2 additions, 5 deletionsinclude/linux/nfs_fs.h
- include/linux/sunrpc/sched.h 2 additions, 0 deletionsinclude/linux/sunrpc/sched.h
- net/sunrpc/sched.c 20 additions, 10 deletionsnet/sunrpc/sched.c
Please register or sign in to comment