Hi, On Tue, Jun 6, 2023 at 5:56 PM Alexander Aring <aahringo@xxxxxxxxxx> wrote: > > This patch is fixing the current the callback handling if it's a nfs > async lock request signaled if fl_lmops is set. > > When using `stress-ng --fcntl 32` on the kernel log there are several > messages like: > > [11185.123533] dlm: dlm_plock_callback: vfs lock error 5d5127 file 000000002dd10f4d fl 000000007d13afae > [11185.127135] dlm: dlm_plock_callback: vfs lock error 5d5127 file 000000002dd10f4d fl 00000000a6046fa0 > [11185.142668] dlm: dlm_plock_callback: vfs lock error 5d5127 file 000000002dd10f4d fl 000000001d13dfa5 > > The commit 40595cdc93ed ("nfs: block notification on fs with its > own ->lock") using only trylocks in an asynchronous polling behaviour. The > behaviour before was however differently by evaluating F_SETLKW or F_SETLK > and evaluating FL_SLEEP which was the case before commit 40595cdc93ed > ("nfs: block notification on fs with its own ->lock"). This behaviour > seems to be broken before. This patch will fix the behaviour for the > special nfs case before commit 40595cdc93ed ("nfs: block notification on > fs with its own ->lock"). > > There is still a TODO of solving the case when an nfs locking request > got interrupted. > sorry, I will rephrase that. - Alex