]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
NFS: struct nfs_commit_info.lock must always point to inode->i_lock
authorTrond Myklebust <trond.myklebust@primarydata.com>
Sat, 14 Feb 2015 02:03:16 +0000 (21:03 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Mar 2015 22:57:27 +0000 (14:57 -0800)
commit5fb43ea907ecf14959ea639dfc4d9fbc9125d8ae
treea2a5bb937afe3bedc272e64d6ecfc4ac19b79078
parent0c0f2544c2355899dcf62821ed0b230b60b79c22
NFS: struct nfs_commit_info.lock must always point to inode->i_lock

commit f4086a3d789dbe18949862276d83b8f49fce6d2f upstream.

Commit 411a99adffb4f (nfs: clear_request_commit while holding i_lock)
assumes that the nfs_commit_info always points to the inode->i_lock.
For historical reasons, that is not the case for O_DIRECT writes.

Cc: Weston Andros Adamson <dros@primarydata.com>
Fixes: 411a99adffb4f ("nfs: clear_request_commit while holding i_lock")
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/direct.c
include/linux/nfs_xdr.h