NFSv4: setlease should return EAGAIN if locks are not available
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 25 Jun 2021 19:08:39 +0000 (15:08 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 29 Jun 2021 17:13:31 +0000 (13:13 -0400)
commitdf2c7b951f439a0342495a4a049d808f679c474c
tree0d4696a327c8ee2367a0061a5389437aad240feb
parente97bc66377bca097e1f3349ca18ca17f202ff659
NFSv4: setlease should return EAGAIN if locks are not available

Instead of returning ENOLCK when we can't hand out a lease, we should be
returning EAGAIN.

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