Andy Adamson e608e79f1b nfs41: call free slot from nfs4_restart_rpc
nfs41_sequence_free_slot can be called multiple times on SEQUENCE operation
errors.
No reason to inline nfs4_restart_rpc

Reported-by: Trond Myklebust <trond.myklebust@netapp.com>

nfs_writeback_done and nfs_readpage_retry call nfs4_restart_rpc outside the
error handler, and the slot is not freed prior to restarting in the rpc_prepare
state during session reset.

Fix this by moving the call to nfs41_sequence_free_slot from the error
path of nfs41_sequence_done into nfs4_restart_rpc, and by removing the test
for NFS4CLNT_SESSION_SETUP.
Always free slot and goto the rpc prepare state on async errors.

Signed-off-by: Andy Adamson <andros@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
2009-12-04 15:55:29 -05:00
..
2009-10-23 14:16:30 -04:00
2009-09-27 11:39:25 -07:00
2009-07-08 09:31:56 -07:00
2009-09-24 08:41:47 -04:00
2009-06-16 19:47:48 -07:00
2009-09-23 18:13:10 -07:00
2009-09-23 18:13:10 -07:00
2009-09-23 18:13:10 -07:00
2009-09-23 18:13:10 -07:00
2009-12-03 15:58:56 -05:00
2007-03-16 19:25:05 -07:00