Artem Bityutskiy 3601ba2735 UBIFS: do not forget to cancel timers
This is a bug-fix: when we unmount, and we are currently in R/O
mode because of an error - we do not sync write-buffers, which
means we also do not cancel write-buffer timers we may possibly
have armed. This patch fixes the issue.

The issue can easily be reproduced by enabling UBIFS failure debug
mode (echo 4 > /sys/module/ubifs/parameters/debug_tsts) and
unmounting as soon as a failure happen. At some point the system
oopses because we have an armed hrtimer but UBIFS is unmounted
already.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2010-10-21 11:15:18 +03:00
..
2008-12-31 14:13:24 +02:00
2009-03-08 13:29:09 +02:00
2010-09-19 21:07:58 +03:00
2010-09-19 21:07:58 +03:00
2009-07-12 12:22:34 -07:00
2010-09-19 21:07:58 +03:00
2009-09-15 17:09:48 +03:00
2008-07-15 17:35:24 +03:00
2010-09-19 21:07:58 +03:00
2010-10-21 11:15:18 +03:00
2008-09-30 11:12:57 +03:00