Tue, Jan 24, 2017 at 12:57:50AM CET, step...@networkplumber.org wrote: >On Sun, 22 Jan 2017 12:44:44 +0100 >Jiri Pirko <j...@resnulli.us> wrote: > >> +static LIST_HEAD(psample_groups_list); >> +static DEFINE_SPINLOCK(psample_groups_lock); >> + > >Why not a mutex? You aren't acquiring this in IRQ context?
Well, that is not argument for mutex. Mutex is much heavier and does not need to be used when not necessary (like if you don't need to sleep).