commit | 961a828df64979d2a9faeeeee043391670a193b9 | [log] [tgz] |
---|---|---|
author | Trond Myklebust <Trond.Myklebust@netapp.com> | Tue Jan 17 22:57:37 2012 -0500 |
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | Tue Jan 31 19:28:08 2012 -0500 |
tree | 4b7ddaf1a19c589e3c8ec96b6c732faa507f2899 | |
parent | 2aeb98f498ce37742b743080fdc6c8cf64053599 [diff] |
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>