]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
nfs: prevent backlogging of renewd requests
authorAlexandros Batsakis <batsakis@netapp.com>
Fri, 5 Feb 2010 11:45:04 +0000 (03:45 -0800)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 2 Mar 2010 17:44:07 +0000 (12:44 -0500)
commitdc96aef96a75348b4d1b01c4c0429ab52780683e
tree1bd4755b97367a8db0e2ea949cb3a4fd84ec3a66
parent888ef2e3f8b7b8daeb031bfb4ad1fd4fa817e193
nfs: prevent backlogging of renewd requests

If the renewd send queue gets backlogged (e.g., if the server goes down),
we will keep filling the queue with periodic RENEW/SEQUENCE requests.

This patch schedules a new renewd request if and only if the previous one
returns (either success or failure)

Signed-off-by: Alexandros Batsakis <batsakis@netapp.com>
[Trond.Myklebust@netapp.com: moved nfs4_schedule_state_renewal() into
separate nfs4_renew_release() and nfs41_sequence_release() callbacks
to ensure correct behaviour on call setup failure]
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4proc.c
fs/nfs/nfs4renewd.c