lkml.org 
[lkml]   [2014]   [Dec]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] incorrect use of init_completion fixup
Date
The second init_completion call should be a reinit_completion here.

patch is against 3.18.0 linux-next

Signed-off-by: Nicholas Mc Guire <der.herr@hofr.at>
---
drivers/block/aoe/aoecmd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/block/aoe/aoecmd.c b/drivers/block/aoe/aoecmd.c
index 422b7d8..2239513 100644
--- a/drivers/block/aoe/aoecmd.c
+++ b/drivers/block/aoe/aoecmd.c
@@ -1331,7 +1331,7 @@ aoe_ktstart(struct ktstate *k)
return -ENOMEM;
k->task = task;
wait_for_completion(&k->rendez); /* allow kthread to start */
- init_completion(&k->rendez); /* for waiting for exit later */
+ reinit_completion(&k->rendez); /* for waiting for exit later */
return 0;
}

--
1.7.10.4


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