On 08/30, Roman Zippel wrote: > Hi, > > On Wed, 30 Aug 2006, Oleg Nesterov wrote: > > > > Why does this need protection against interrupts? > > > > uidhash_lock can be taken from irq context. For example, > > delayed_put_task_struct() > > does __put_task_struct()->free_uid(). > > AFAICT it's called via rcu, does that mean anything released via rcu has > to be protected against interrupts?
RCU means softirq, probably we can use spin_lock_bh() to protect against deadlock. But free_uid() may be called with irqs disabled, we can't use local_bh_enable() in such a case. Oleg. ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ ckrm-tech mailing list https://lists.sourceforge.net/lists/listinfo/ckrm-tech