]> 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:52:53 +0000 (14:52 -0800)
commit4a73309b58350fb5f3aaefdc02364e6bc7223dce
tree69ffbbee96654ed55d235527766c251f32424f3a
parente616478faefc8eb97cd2e2674bc795caac5f9c69
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