RE: Usage of Semaphore with a workqueue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I think it's a bit hard to tell.
What are the reasons a semaphore acquisition might fail ?
Is there more than one task operating on the work queue ?
This should be a straight forward  producer-consumer implementation, but it depends on how
many consumers there are.

Best Regards,
Kris 

> -----Original Message-----
> From: kernelnewbies-bounce@xxxxxxxxxxxx [mailto:kernelnewbies-bounce@xxxxxxxxxxxx] On
Behalf
> Of Devesh Sharma
> Sent: Thursday, 2 April 2009 2:12 AM
> To: kernelnewbies@xxxxxxxxxxxx
> Subject: Usage of Semaphore with a workqueue
> 
> Hello list,
> 
> Consider a case where I have a workqueue, a work is submitted to a it
> from some interrupt handler
> Lets say, some where in a code, it tries to get some semaphore to
> enter into a critical section,
> and fails to get it, sholud I still return from the work function by
> returning ERESTARTSYS?
> Kindly somebody clarify this to me
> 
> Thanks in advance
> Devesh
> 
> --
> To unsubscribe from this list: send an email with
> "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
> Please read the FAQ at http://kernelnewbies.org/FAQ


--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux