Hi I am using work queue to do bottom half processing in my driver. The function queue_work() doesn't enqueue the work if the work_struct is already in the queue. I want to know how this phenomenon is synchronized. Suppose I have enqueued a work which calls the function do_this_work(). Now the do_this_work() has been invoked and not finished yet. So if there is an interrupt while processing of this function, will the new work be enqueued or the queue_work() still give an error ? What I could think is when the kernel starts processing do_this_work(), it resets some flag so that more work can be enqueued to the work queue. Does it behave like this or not ? Please elaborate the scenario if u can. Thanks, Jasjit Singh |