Re: Sleeping in RCU list traversal

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Tetsuo Handa <penguin-kernel@...>
Cc: <linux-kernel@...>
Date: Sunday, October 7, 2007 - 6:37 pm

> Hello.
I'm sorry,I think I got your idea, if you do not need ptr in
my_task_that_may_sleep(), why you need to grab a reference to "ptr". If
your my_task_that_may_sleep() needs ptr, and according to the 
it is ok to use "ptr" after rcu_read_ulock(). The basic idea behind RCU
is to split updates into "removal" and "reclamation" phases. If you
memory region pointed by "ptr" will not "reclamation" in sleep, it is ok

Regards.

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re:Sleeping in RCU list traversal, Jun WANG, (Sun Oct 7, 3:11 pm)
Re: Sleeping in RCU list traversal, Tetsuo Handa, (Sun Oct 7, 9:26 am)
Re: Sleeping in RCU list traversal, Jun WANG, (Sun Oct 7, 6:37 pm)
Re: Sleeping in RCU list traversal, Tetsuo Handa, (Sun Oct 7, 12:56 pm)
Re: Sleeping in RCU list traversal, Peter Zijlstra, (Sun Oct 7, 2:33 pm)
Re: Sleeping in RCU list traversal, Tetsuo Handa, (Sun Oct 7, 3:56 pm)