workqueue: add to_delayed_work() helper function
authorJean Delvare <khali@linux-fr.org>
Thu, 2 Apr 2009 23:56:54 +0000 (16:56 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 3 Apr 2009 02:04:50 +0000 (19:04 -0700)
commitbf6aede712334d7338d5c47a5ee5ba3883c82a61
tree153483c5ef1de41f8dd3d233ba46117d0676c303
parente4c2ff1cf2d7fc65d0fc6f88bc98338e0212ad52
workqueue: add to_delayed_work() helper function

It is a fairly common operation to have a pointer to a work and to need a
pointer to the delayed work it is contained in.  In particular, all
delayed works which want to rearm themselves will have to do that.  So it
would seem fair to offer a helper function for this operation.

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Ingo Molnar <mingo@elte.hu>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Greg KH <greg@kroah.com>
Cc: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
14 files changed:
arch/powerpc/kernel/vio.c
drivers/crypto/hifn_795x.c
drivers/input/mouse/hgpk.c
drivers/net/dm9000.c
drivers/net/mlx4/en_netdev.c
drivers/net/mlx4/en_rx.c
drivers/net/mlx4/sense.c
drivers/net/phy/phy.c
drivers/s390/scsi/zfcp_fc.c
drivers/staging/rtl8187se/ieee80211/ieee80211_softmac.c
drivers/staging/rtl8187se/r8180_core.c
drivers/usb/wusbcore/devconnect.c
include/linux/workqueue.h
mm/slab.c