From: Trond Myklebust Date: Mon, 15 Oct 2012 17:14:43 +0000 (-0400) Subject: NFSv4: Remove the BUG_ON() from nfs4_get_lease_time_prepare()... X-Git-Tag: next-20121025~77^2~12 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b40681f9fb9bd45b271035560552bd14a97784d4;p=karo-tx-linux.git NFSv4: Remove the BUG_ON() from nfs4_get_lease_time_prepare()... An EAGAIN return value would be unexpected, but there is no reason to BUG... Signed-off-by: Trond Myklebust --- diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 68b21d81b7ac..16190b48cf9e 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -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__); }