[patch 10/16] block: umem: Use del_timer_sync() in exit path

From: Thomas Gleixner
Date: Sun Mar 23 2014 - 11:11:56 EST


Make sure no callback is running before removing the module.

Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
Cc: Kent Overstreet <kmo@xxxxxxxxxxxxx>
---
drivers/block/umem.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Index: tip/drivers/block/umem.c
===================================================================
--- tip.orig/drivers/block/umem.c
+++ tip/drivers/block/umem.c
@@ -746,7 +746,7 @@ static void init_battery_timer(void)

static void del_battery_timer(void)
{
- del_timer(&battery_timer);
+ del_timer_sync(&battery_timer);
}

/*


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/