Files
i2som-imx-linux/net
Trond Myklebust 88d6d79b6a SUNRPC: Ensure we release the socket write lock if the rpc_task exits early
commit 87ed50036b upstream.

If the rpc_task exits while holding the socket write lock before it has
allocated an rpc slot, then the usual mechanism for releasing the write
lock in xprt_release() is defeated.

The problem occurs if the call to xprt_lock_write() initially fails, so
that the rpc_task is put on the xprt->sending wait queue. If the task
exits after being assigned the lock by __xprt_lock_write_func, but
before it has retried the call to xprt_lock_and_alloc_slot(), then
it calls xprt_release() while holding the write lock, but will
immediately exit due to the test for task->tk_rqstp != NULL.

Reported-by: Chris Perl <chris.perl@gmail.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
2013-02-06 04:33:27 +00:00
..
2012-09-19 15:04:50 +01:00
2012-07-25 04:11:40 +01:00
2011-09-16 19:20:20 -04:00
2012-09-19 15:04:53 +01:00
2012-10-30 23:26:34 +00:00
2013-01-16 01:13:25 +00:00