NFSv4: Fix an infinite loop in the NFS state recovery code
commit027b6ca02192f381a5a91237ba8a8cf625dc6f6a
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 23 Dec 2008 21:04:13 +0000 (23 16:04 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 23 Dec 2008 21:04:13 +0000 (23 16:04 -0500)
treef8ece785b53cbb8978bab734e348972aa5ed022f
parent6dcd3926b214a1fb081df18305921dedae269977
NFSv4: Fix an infinite loop in the NFS state recovery code

Marten Gajda <marten.gajda@fernuni-hagen.de> states:

I tracked the problem down to the function nfs4_do_open_expired.
Within this function _nfs4_open_expired is called and may return
-NFS4ERR_DELAY. When a further call to _nfs4_open_expired is
executed and does not return -NFS4ERR_DELAY the "exception.retry"
variable is not reset to 0, causing the loop to iterate again
(and as long as err != -NFS4ERR_DELAY, probably forever)

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4proc.c