It is a de facto noop, just make it less costly.
quite frankly the code looks like a bug. did you mean to do LK_NOWAIT locking in this case instead?
if the doing nothing is indeed intended, this patch accomplishes it cheaper
Differential D38763
nfs: patch up MNT_LAZY on sync mjg on Feb 24 2023, 7:20 PM. Authored by Tags None Referenced Files
Subscribers
Details
quite frankly the code looks like a bug. did you mean to do LK_NOWAIT locking in this case instead? if the doing nothing is indeed intended, this patch accomplishes it cheaper
Diff Detail
Event TimelineComment Actions Yea, it looks like it was coded this way (MNT_LAZY check in loop) I agree it just seems silly to go through the loop doing nothing.
Comment Actions Just fyi, the buffer cache code I did for NFS way back in |