Thread (6 messages) 6 messages, 4 authors, 2015-02-11

workqueues - how to use them correctly

From: Roshan A <hidden>
Date: 2015-02-10 08:50:48

hi all,

My question is regarding the correct use of workqueues. I have a
driver which queues a work item in the interrupt handler. The bottom
half function ( the workitem -function ) does have proper locking (
mutex ) in place for atomicity.

With this setup, since the interrupts are enabled, it's possible to
have a scenario where, when one workitem is being executed, another
can be queued up, which results in the workitems being executed in
parallel, however since there is a mutex, one thread will sleep.

is this particular scenario considered bad or discouraged ?

Thank you,
-Roshan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help