NFSv4.1: Handle NFS4ERR_DELAY when resetting the NFSv4.1 session
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 30 Jan 2013 18:04:10 +0000 (13:04 -0500)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 6 Feb 2013 04:33:51 +0000 (04:33 +0000)
commit78e3ae2d57c0df313b079a07f6ffc16e4041e56c
treed32b647a33b525da498b5de93b25dc9083bce770
parent8e61814f416e0069dbcedbe15509c0a5b5af9da6
NFSv4.1: Handle NFS4ERR_DELAY when resetting the NFSv4.1 session

commit c489ee290bdbbace6bb63ebe6ebd4dd605819495 upstream.

NFS4ERR_DELAY is a legal reply when we call DESTROY_SESSION. It
usually means that the server is busy handling an unfinished RPC
request. Just sleep for a second and then retry.
We also need to be able to handle the NFS4ERR_BACK_CHAN_BUSY return
value. If the NFS server has outstanding callbacks, we just want to
similarly sleep & retry.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
[bwh: Backported to 3.2: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
fs/nfs/nfs4state.c