mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Synchronization mechanism between wait_for_completion_interruptible_timeout() & complete()
@ 2015-03-04 13:16 Naveen Kumar Parna
  2015-03-05 13:23 ` Michal Hocko
  0 siblings, 1 reply; 5+ messages in thread
From: Naveen Kumar Parna @ 2015-03-04 13:16 UTC (permalink / raw)
  To: linux-kernel

Hello,

I have a question regarding the synchronization mechanism between
wait_for_completion_interruptible_timeout() & complete(). I used
complete() API in the ISR Tx interrupt path and
wait_for_completion_interruptible_timeout() in struct file_operations
.write method.

Let assume a scenario in which Tx interrupt occurred and ISR called
complete() API before any process actually blocked at write method on
wait_for_completion_interruptible_timeout().

After a few milli seconds, a process called write() API. Does it gets
blocked on wait_for_completion_interruptible_timeout() for completion
of a specific task to be signaled from new Tx interrupt?


Thanks,
Naveen

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-03-09  6:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-04 13:16 Synchronization mechanism between wait_for_completion_interruptible_timeout() & complete() Naveen Kumar Parna
2015-03-05 13:23 ` Michal Hocko
2015-03-06  8:34   ` Naveen Kumar Parna
2015-03-06  8:48     ` Michal Hocko
2015-03-09  6:59       ` Naveen Kumar Parna

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®