linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Killing tasklet from interrupt
@ 2002-03-18 19:53 Jean Tourrilhes
  2002-03-18 20:38 ` Richard B. Johnson
  0 siblings, 1 reply; 7+ messages in thread
From: Jean Tourrilhes @ 2002-03-18 19:53 UTC (permalink / raw)
  To: Linux kernel mailing list, Alan Cox, Jeff Garzik

	Hi,

	I'm trying to use tasklets and I've come across one problem. I
need to kill a tasklet from a timer, and I wonder if it's legal.

	Code :
	-> User close IrDA TSAP and goes away
		-> LSAP not clean, more work to do
			-> Schedule timer in one second
	-> Timer
		-> If LSAP clean and nothing to do
			-> Kill tasklet
			-> Destroy LSAP
		-> Else re-shedule timer

	The tasklet is used in the Rx path, so may be scheduled after
the user close the TSAP. The TSAP may interface to the socket code, to
the TTY code, to the Ethernet code or the PPP code, so we are not even
guaranteed that the TSAP closure is done from a user context (fun,
fun, fun).
	To be fair, the timer API is much more versatile in that
respect. What I think I need is a tasklet_try_kill()...

	Regards,

	Jean

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

end of thread, other threads:[~2002-03-22 17:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-18 19:53 Killing tasklet from interrupt Jean Tourrilhes
2002-03-18 20:38 ` Richard B. Johnson
2002-03-18 20:57   ` Jean Tourrilhes
2002-03-18 23:20     ` Maksim Krasnyanskiy
2002-03-18 23:33       ` Jean Tourrilhes
2002-03-19 19:41         ` Maksim Krasnyanskiy
2002-03-22 17:56           ` Maksim Krasnyanskiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).