diff options
author | Andy Adamson <andros@netapp.com> | 2009-12-04 21:55:29 +0100 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2009-12-04 21:55:29 +0100 |
commit | e608e79f1bf4b967afcf57777e63b5f0939b00e8 (patch) | |
tree | d649b5714435b7d2d4edd5779fa22122d61ee0c5 /scripts/bin2c.c | |
parent | nfs41: nfs4_get_lease_time will never session reset (diff) | |
download | linux-e608e79f1bf4b967afcf57777e63b5f0939b00e8.tar.xz linux-e608e79f1bf4b967afcf57777e63b5f0939b00e8.zip |
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>
Diffstat (limited to 'scripts/bin2c.c')
0 files changed, 0 insertions, 0 deletions