Skip to content
Commit 74a6d4b5 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

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: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
parent b5bab9bf
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment