lkml.org 
[lkml]   [2014]   [Mar]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch 10/16] block: umem: Use del_timer_sync() in exit path
Make sure no callback is running before removing the module.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Kent Overstreet <kmo@daterainc.com>
---
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);
}

/*



\
 
 \ /
  Last update: 2014-03-23 16:21    [W:0.183 / U:0.260 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site