Trond Myklebust 474bc33469 nfsd: Reduce contention for the nfsd_file nf_rwsem
When flushing out the unstable file writes as part of a COMMIT call, try
to perform most of of the data writes and waits outside the semaphore.

This means that if the client is sending the COMMIT as part of a memory
reclaim operation, then it can continue performing I/O, with contention
for the lock occurring only once the data sync is finished.

Fixes: 5011af4c698a ("nfsd: Fix stable writes")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
 Tested-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
2021-07-06 20:14:44 -04:00
..
2021-02-23 13:39:45 -08:00
2021-01-25 09:36:28 -05:00
2021-05-07 11:23:41 -07:00
2020-09-25 18:01:26 -04:00
2021-01-24 14:27:17 +01:00
2021-03-22 10:19:02 -04:00
2021-01-25 09:36:28 -05:00
2021-05-18 13:44:04 -04:00
2018-09-25 20:34:54 -04:00