public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] incorrect use of init_completion fixup
@ 2014-12-23 17:52 Nicholas Mc Guire
  2014-12-24 19:01 ` Prarit Bhargava
  0 siblings, 1 reply; 5+ messages in thread
From: Nicholas Mc Guire @ 2014-12-23 17:52 UTC (permalink / raw)
  To: Dan Williams
  Cc: Vinod Koul, Prarit Bhargava, dmaengine, linux-kernel,
	Nicholas Mc Guire

The successive init_completion calls should be reinit_completion here.

patch is against 3.18.0 linux-next

Signed-off-by: Nicholas Mc Guire <der.herr@hofr.at>
---
 drivers/dma/ioat/dma_v3.c |    4 +-
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/dma/ioat/dma_v3.c b/drivers/dma/ioat/dma_v3.c
index 32eae38..3dbcc42 100644
--- a/drivers/dma/ioat/dma_v3.c
+++ b/drivers/dma/ioat/dma_v3.c
@@ -1353,7 +1353,7 @@ static int ioat_xor_val_self_test(struct ioatdma_device *device)
 	}

 	async_tx_ack(tx);
-	init_completion(&cmp);
+	reinit_completion(&cmp);
 	tx->callback = ioat3_dma_test_callback;
 	tx->callback_param = &cmp;
 	cookie = tx->tx_submit(tx);
@@ -1405,7 +1405,7 @@ static int ioat_xor_val_self_test(struct ioatdma_device *device)
 	}

 	async_tx_ack(tx);
-	init_completion(&cmp);
+	reinit_completion(&cmp);
 	tx->callback = ioat3_dma_test_callback;
 	tx->callback_param = &cmp;
 	cookie = tx->tx_submit(tx);
--
1.7.10.4


^ permalink raw reply related	[flat|nested] 5+ messages in thread
[parent not found: <49ea5f8dc52545d4a5df6b1ad8302410@HT17-E6.exg6.exghost.com>]
* [PATCH] incorrect use of init_completion fixup
@ 2014-12-23 17:44 Nicholas Mc Guire
  0 siblings, 0 replies; 5+ messages in thread
From: Nicholas Mc Guire @ 2014-12-23 17:44 UTC (permalink / raw)
  To: Ed L. Cashin; +Cc: linux-kernel, Nicholas Mc Guire

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


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-12-24 19:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-23 17:52 [PATCH] incorrect use of init_completion fixup Nicholas Mc Guire
2014-12-24 19:01 ` Prarit Bhargava
2014-12-24 19:11   ` Nicholas Mc Guire
     [not found] <49ea5f8dc52545d4a5df6b1ad8302410@HT17-E6.exg6.exghost.com>
2014-12-24  2:14 ` Ed Cashin
  -- strict thread matches above, loose matches on Subject: below --
2014-12-23 17:44 Nicholas Mc Guire

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox