summaryrefslogtreecommitdiff
path: root/fs/nfs/blocklayout
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@primarydata.com>2017-07-19 15:23:10 +0300
committerTrond Myklebust <trond.myklebust@primarydata.com>2017-08-15 18:54:47 +0300
commit74a6d4b5ae4ec7e93c72a92decb2f8c16c812416 (patch)
treea585cc16cd1048525726b27076700e11eb4b126d /fs/nfs/blocklayout
parentb5bab9bf91324a7fe21b365d6966cfd087d08e3a (diff)
downloadlinux-74a6d4b5ae4ec7e93c72a92decb2f8c16c812416.tar.xz
NFS: Further optimise nfs_lock_and_join_requests()
When locking the entire group in order to remove subrequests, the locks are always taken in order, and with the page group lock being taken after the page head is locked. The intention is that: 1) The lock on the group head guarantees that requests may not be removed from the group (although new entries could be appended if we're not holding the group lock). 2) It is safe to drop and retake the page group lock while iterating through the list, in particular when waiting for a subrequest lock. Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/blocklayout')
0 files changed, 0 insertions, 0 deletions