]> Pileus Git - ~andy/linux/commit
nfsd4: fix setlease error return
authorJ. Bruce Fields <bfields@redhat.com>
Fri, 26 Jul 2013 20:57:20 +0000 (16:57 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 26 Jul 2013 21:02:07 +0000 (17:02 -0400)
commitb1948a641daefe8d128749f3d419ed24d529a8ed
treebdb2e223e372ebc4d3436b6ecd3860476213de9c
parentdf66e75395c839c3a373bae897dbb1248f741b45
nfsd4: fix setlease error return

This actually makes a difference in the 4.1 case, since we use the
status to decide what reason to give the client for the delegation
refusal (see nfsd4_open_deleg_none_ext), and in theory a client might
choose suboptimal behavior if we give the wrong answer.

Reported-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c