]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
NFSv4: Remove the BUG_ON() from nfs4_get_lease_time_prepare()...
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 15 Oct 2012 17:14:43 +0000 (13:14 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 24 Oct 2012 14:47:49 +0000 (10:47 -0400)
An EAGAIN return value would be unexpected, but there is no reason to
BUG...

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

index 68b21d81b7acfa79bef010023195c1f45023c82b..16190b48cf9e231cb015f4cb9c3da2e481887691 100644 (file)
@@ -5571,8 +5571,8 @@ static void nfs4_get_lease_time_prepare(struct rpc_task *task,
                                   &data->args->la_seq_args,
                                   &data->res->lr_seq_res, task);
 
-       BUG_ON(ret == -EAGAIN);
-       rpc_call_start(task);
+       if (ret != -EAGAIN)
+               rpc_call_start(task);
        dprintk("<-- %s\n", __func__);
 }