]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Don't run wake_up_bit() when nobody is waiting...
authorTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 11 Jul 2017 21:53:48 +0000 (17:53 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Thu, 13 Jul 2017 20:57:18 +0000 (16:57 -0400)
commit9233a034ea4eb73706b5b8051f86a612ec9b6a1a
tree1e86b94a773529cae5a3144e03ff7b35f7673188
parent6bb470be8c549090afb27d9f080bec4c2c759dee
NFS: Don't run wake_up_bit() when nobody is waiting...

"perf lock" shows fairly heavy contention for the bit waitqueue locks
when doing an I/O heavy workload.
Use a bit to tell whether or not there has been contention for a lock
so that we can optimise away the bit waitqueue options in those cases.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/pagelist.c
include/linux/nfs_page.h