Remark on commit a7900a116803 "fsnotify-convert-notification_mutex-to-a-spinlock-fix"
I was also hit by the false BUG_ON in the first version of the change and checked how to fix it. The current fix IMHO is overly complex.
You could simply use assert_spin_locked(lock). It does exactly what you want and it's even used in other places under fs/notify already.
Rgds, Heiner
Jan Kara
reviewerQuoted 5 lines · Heiner Kallweit
I was also hit by the false
BUG_ONin the first version of the change and checked how to fix it. The current fix IMHO is overly complex.You could simply use
assert_spin_locked(lock). It does exactly what you want and it's even used in other places under fs/notify already.
Bah, I was searching for something like this and I failed. Thanks for the pointer. I'll fix up the patch.
Honza
Signature · 2 lines
Jan Kara <[email protected]> SUSE Labs, CR