Re: [PATCH][SMACK] convert smack rule list to linux list

Tetsuo Handa
2009-02-22T13:31:33Z

etienne wrote:
> what's the best way, using a rcu variant for "list_for_each, container_of ...etc" ?
> (concurrent list insertion are already protected with a mutex, so rcu must the good idea for the read side)
Read side will need a read lock.
I think you need to change from "mutex" to "rw_semaphore" (on the assumption
that SMACK is safe against read locks that may sleep. If not, change from
"mutex" to "rw_spinlock").

Regards.