Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nfs: fix race condition of LAYOUTRETURN and LAYOUTGET
Motivation: in a situation, when two processes on the same client do: time:------------------------------------------> P1: OPEN+LAYOUTGET, READ, LAYOUTETURN+CLOSE P2: OPEN, LAYOUTGET, READ the LAYOUTGET of the second process might get mover redirect before while mover kill in progress. As a result, the READ request will e sent to a pool when mover is already stopped. Modification: Return error DELAY as long as shutdown in progress. The next LAYOUTGET for read will start a new mover, for a write will get EPERM (immutable files). Result: The race condition should be fixed. Acked-by: Alert Rossi Target: master, 9.1, 9.0, 8.2 Require-book: no Require-notes: yes
- Loading branch information