]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
nfs: fix error handling in lock_and_join_requests
authorWeston Andros Adamson <dros@primarydata.com>
Mon, 15 Sep 2014 18:14:42 +0000 (14:14 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 5 Oct 2014 20:41:01 +0000 (13:41 -0700)
commitae3f3485448578097a115f341733d938c357c46b
treeda9f4fd4fe294209b490135b17df9dc8dc099a28
parent4a2025db17aa8646bdbc318da56e2729d6431b47
nfs: fix error handling in lock_and_join_requests

commit 94970014c46223cbcdfbfc67b89596a412f9e3dd upstream.

This fixes handling of errors from nfs_page_group_lock in
nfs_lock_and_join_requests.  It now releases the inode lock and the
reference to the head request.

Reported-by: Peng Tao <tao.peng@primarydata.com>
Signed-off-by: Weston Andros Adamson <dros@primarydata.com>
Reviewed-by: Peng Tao <tao.peng@primarydata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/write.c