On Sun, Dec 4, 2022 at 12:17 PM Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> wrote: > > And again - if the trylock is there because 'gdev' itself might go > away at any time and you can't afford to wait on the lock, then it's > broken regardless (and the above suggestion won't help either) .. another reason I can see is that you are holding other locks, and the trylock is either for deadlock avoidance or because the other locks are spinning locks and you cannot sleep. But if that's the case, then the trylock is basically a hacky workaround for broken locking, together with a "I know the only reason it fails is because we've already entered the shutdown phase". Again, that kind of hacky thing is not for this late in the rc game. It might be an acceptable workaround for backporting if it has *huge* comments about why it's done that way, but it's not acceptable as some kind of fix without that kind of documentation for why it's done that hacky way rather than with proper locking. Linus