]> git.karo-electronics.de Git - karo-tx-linux.git/commit
NFSv4.1: Fix layoutcommit error handling
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 27 Mar 2012 22:22:19 +0000 (18:22 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Apr 2012 16:53:07 +0000 (09:53 -0700)
commit04cf7f7a565f0d2d2f5f3be56ceb6d680cba0f71
treede6d2cfd372d86ea51786b87033c55b784bcb36d
parente5267d1f1cc43a481a599fe1e2d8256016e18825
NFSv4.1: Fix layoutcommit error handling

commit e59d27e05a6435f8c04d5ad843f37fa795f2eaaa upstream.

Firstly, task->tk_status will always return negative error values,
so the current tests for 'NFS4ERR_DELEG_REVOKED' etc. are all being
ignored.
Secondly, clean up the code so that we only need to test
task->tk_status once!

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/nfs4proc.c