On Fri, 28 May 2010 13:35:07 +0200, James Carlson <carls...@workingcode.com> 
wrote:

> On 05/28/10 04:57, Frank Batschulat (Home) wrote:
>> On Fri, 28 May 2010 10:43:22 +0200, <eiji....@oracle.com> wrote:
>>
>>> getzoneid() can return a correct value even if it's called in a taskq thread
>>> (kernel context) and/or in an interrupt handler (interrupt context)?
>>
>> I suppose so, look its not doing anything earth shattering:
>>
>>    2496 getzoneid(void)
>>    2497 {
>>    2498      return (curproc->p_zone->zone_id);
>>    2499 }
>>
>> no locking involved, no allocations done, nothing considered
>> harmfull in an interrupt context or taskq thread.
>>
>> only question is to what proc your taskq/interrupt thread will bind to.

and not only are interrupt threads bound to p0, taskq threads
created using taskq_create() are also bound to p0.

so for taskq that'd be only valid if you'd use taskq_create_proc()
with something not being p0.

---
frankB

_______________________________________________
zones-discuss mailing list
zones-discuss@opensolaris.org

Reply via email to