]> git.karo-electronics.de Git - linux-beck.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)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Sat, 14 Feb 2015 02:03:16 +0000 (21:03 -0500)
commitf4086a3d789dbe18949862276d83b8f49fce6d2f
tree4b4c65765c66e00397b14b1839ea775cb73e851e
parent813b00d63f6ca1ed40a2f4f9c034d59bc424025e
NFS: struct nfs_commit_info.lock must always point to inode->i_lock

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")
Cc: stable@vger.kernel.org # 3.17.x
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/direct.c
include/linux/nfs_xdr.h