mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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 <[email protected]> Acked-by: Ingo Molnar <[email protected]> Cc: Greg KH <[email protected]> Cc: Randy Dunlap <[email protected]> Cc: Kay Sievers <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
691cc54c7d
commit
c6f3a97f86
6 changed files with 187 additions and 13 deletions
5
fs/aio.c
5
fs/aio.c
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue