mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: [PATCH 3/5] AF_RXRPC: Make it possible to merely try to cancel timers and delayed work [try #2]
  2007-03-16 12:50   ` [PATCH 3/5] AF_RXRPC: Make it possible to merely try to cancel timers and delayed work " David Howells
@ 2007-03-16 15:07 Alan Cox
  2007-03-16 12:50 ` [PATCH 0/5] [RFC] AF_RXRPC socket family implementation " David Howells
  0 siblings, 1 reply; 31+ messages in thread
From: Alan Cox @ 2007-03-16 15:07 UTC (permalink / raw)
  To: David Howells
  Cc: davem, netdev, herbert.xu, linux-kernel, hch, arjan, dhowells

> +/**
> + * try_to_cancel_delayed_work - Try to kill pending scheduled, delayed work
> + * @work: the work to cancel
> + *
> + * Try to kill off a pending schedule_delayed_work().
> + * - The timer may still be running afterwards, and if so, the work may still
> + *   be pending
> + * - Returns -1 if timer still active, 1 if timer removed, 0 if not scheduled
> + * - Can be called from the work routine; if it's still pending, just return
> + *   and it'll be called again.
> + */
> +static inline int try_to_cancel_delayed_work(struct delayed_work *work)
> +{
> +	int ret;

This expands to a fair bit of code and IMHO isn't an inline candidate.


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

end of thread, other threads:[~2007-03-20 13:17 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-16 15:07 [PATCH 3/5] AF_RXRPC: Make it possible to merely try to cancel timers and delayed work [try #2] Alan Cox
2007-03-16 12:50 ` [PATCH 0/5] [RFC] AF_RXRPC socket family implementation " David Howells
2007-03-16 12:50   ` [PATCH 1/5] AF_RXRPC: Add blkcipher accessors for using kernel data directly " David Howells
2007-03-16 13:32     ` Christoph Hellwig
2007-03-16 13:57     ` David Howells
2007-03-16 14:19       ` David Howells
2007-03-16 15:12       ` Alan Cox
2007-03-16 12:50   ` [PATCH 2/5] AF_RXRPC: Move generic skbuff stuff from XFRM code to generic code " David Howells
2007-03-16 13:36     ` Christoph Hellwig
2007-03-16 12:50   ` [PATCH 3/5] AF_RXRPC: Make it possible to merely try to cancel timers and delayed work " David Howells
2007-03-16 14:22     ` David Howells
2007-03-16 12:50   ` [PATCH 4/5] AF_RXRPC: Key facility changes for AF_RXRPC " David Howells
2007-03-16 13:38     ` Christoph Hellwig
2007-03-16 14:15     ` David Howells
2007-03-16 13:40   ` [PATCH 0/5] [RFC] AF_RXRPC socket family implementation " Christoph Hellwig
2007-03-16 14:23   ` David Howells
2007-03-16 15:14     ` David Howells
2007-03-16 17:11       ` Alan Cox
2007-03-18  6:32         ` Kyle Moffett
2007-03-18 14:23           ` Alan Cox
2007-03-19 11:56           ` David Howells
2007-03-19 12:59             ` David Howells
2007-03-19 15:29               ` Alan Cox
2007-03-19 15:41               ` David Howells
2007-03-19 19:03                 ` Alan Cox
2007-03-19 19:19                 ` David Miller
2007-03-20 11:16                 ` David Howells
2007-03-20 13:16                 ` David Howells
2007-03-19 13:04             ` Alan Cox
2007-03-16 15:34     ` Alan Cox
2007-03-16 15:13   ` Alan Cox

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

Powered by JetHome