lkml.org 
[lkml]   [2022]   [May]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC PATCH v6 07/11] leds: trigger: netdev: use mutex instead of spinlocks
> @@ -400,7 +400,7 @@ static int netdev_trig_notify(struct notifier_block *nb,
>
> cancel_delayed_work_sync(&trigger_data->work);
>
> - spin_lock_bh(&trigger_data->lock);
> + mutex_lock(&trigger_data->lock);

I'm not sure you can convert a spin_lock_bh() in a mutex_lock().

Did you check this? What context is the notifier called in?

Andrew

\
 
 \ /
  Last update: 2022-05-05 03:11    [W:0.128 / U:0.212 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site