]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Fix a race between work-queue and rpc_killall_tasks
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 6 Jul 2011 23:58:23 +0000 (19:58 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 8 Jul 2011 00:45:37 +0000 (20:45 -0400)
commit26817d70b4e22b9ee438711ec789077d999f22b6
tree1fbcb0cd1febf70dc6ae6ded0e3b98ae738c1ef8
parent9589403866ffd7d545fa01e6db9b3bb7962fd797
SUNRPC: Fix a race between work-queue and rpc_killall_tasks

Since rpc_killall_tasks may modify the rpc_task's tk_action field
without any locking, we need to be careful when dereferencing it.

Reported-by: Ben Greear <greearb@candelatech.com>
Tested-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: stable@kernel.org
net/sunrpc/sched.c