]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
UBIFS: do not forget to cancel timers
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 18 Oct 2010 05:32:35 +0000 (08:32 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Thu, 21 Oct 2010 08:15:18 +0000 (11:15 +0300)
commit3601ba27353a968df843454e4b81155376682505
tree144263a6c1d1255f260788da3d8f5593e2ad6bb4
parent39037559e651c417fb68b828926dc61cd5d6e5e2
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>
fs/ubifs/super.c