Skip to contentSkip to conversation

Remark on commit a7900a116803 "fsnotify-convert-notification_mutex-to-a-spinlock-fix"

DISCUSSION Heiner Kallweit 2 participants 2 messages Sep 20, 2016 – Sep 21, 2016 VFS

lore
Share & tools
lore
#0 lore raw

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

reviewer
#1 lore raw
Quoted 5 lines · Heiner Kallweit

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.

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