• Artem Bityutskiy's avatar
    UBIFS: do not forget to cancel timers · 3601ba27
    Artem Bityutskiy authored
    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: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
    3601ba27
super.c 58.2 KB