]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Reduce time spent holding the i_mutex during fallocate()
authorAnna Schumaker <Anna.Schumaker@netapp.com>
Mon, 16 Mar 2015 18:06:24 +0000 (14:06 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 23 Apr 2015 18:36:28 +0000 (14:36 -0400)
commit60d22d58df83466e49b11215ab082ef207af38ae
treefb92b7097ce59629094ea59e0cc3a1cf0acf14be
parentebe7ef573830ccee25c5a45629eb8d376a55f1df
NFS: Reduce time spent holding the i_mutex during fallocate()

At the very least, we should not be taking the i_mutex until after
checking if the server even supports ALLOCATE or DEALLOCATE, allowing
v4.0 or v4.1 to exit without potentially waiting on a lock.

Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/nfs42proc.c
fs/nfs/nfs4file.c