diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2008-04-30 00:55:03 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-30 08:29:53 -0700 |
commit | c6f3a97f86a5c97be0ca255976110bb9c3cfe669 (patch) | |
tree | 95a7bf3c928a85b26aed128786fc09e18bc5dcfc /fs | |
parent | 691cc54c7d28542434d2b3ee4ddbad6a99312dec (diff) | |
download | kernel_samsung_aries-c6f3a97f86a5c97be0ca255976110bb9c3cfe669.zip kernel_samsung_aries-c6f3a97f86a5c97be0ca255976110bb9c3cfe669.tar.gz kernel_samsung_aries-c6f3a97f86a5c97be0ca255976110bb9c3cfe669.tar.bz2 |
debugobjects: add timer specific object debugging code
Add calls to the generic object debugging infrastructure and provide fixup
functions which allow to keep the system alive when recoverable problems have
been detected by the object debugging core code.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Ingo Molnar <mingo@elte.hu>
Cc: Greg KH <greg@kroah.com>
Cc: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/aio.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1078,9 +1078,7 @@ static void timeout_func(unsigned long data) static inline void init_timeout(struct aio_timeout *to) { - init_timer(&to->timer); - to->timer.data = (unsigned long)to; - to->timer.function = timeout_func; + setup_timer_on_stack(&to->timer, timeout_func, (unsigned long) to); to->timed_out = 0; to->p = current; } @@ -1213,6 +1211,7 @@ retry: if (timeout) clear_timeout(&to); out: + destroy_timer_on_stack(&to.timer); return i ? i : ret; } |