NFS: Reduce lock contention in nfs_page_find_head_request()
authorTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 17 Jul 2017 13:30:13 +0000 (09:30 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 15 Aug 2017 15:54:46 +0000 (11:54 -0400)
commit82749dd4efcec8e90fa7769eec3dd0afa2e3396a
tree0e8c3f768d8ab4e91944893624dcb73ef8e557e7
parent6d17d653c9f152e113043d00f3bcf00c0eb5f5a2
NFS: Reduce lock contention in nfs_page_find_head_request()

Add a lockless check for whether or not the page might be carrying
an existing writeback before we grab the inode->i_lock.

Reported-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/write.c