All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mv_xor: fix race in tasklet function
@ 2010-12-21 14:53 Saeed Bishara
  2010-12-22 11:21 ` saeed bishara
  0 siblings, 1 reply; 2+ messages in thread
From: Saeed Bishara @ 2010-12-21 14:53 UTC (permalink / raw)
  To: linux-raid; +Cc: saeed.bishara, Saeed Bishara

use mv_xor_slot_cleanup() instead of __mv_xor_slot_cleanup() as the former function
aquires the spin lock that needed to protect the drivers data.

Signed-off-by: Saeed Bishara <saeed@marvell.com>
---
 drivers/dma/mv_xor.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/dma/mv_xor.c b/drivers/dma/mv_xor.c
index 411d5bf..a25f5f6 100644
--- a/drivers/dma/mv_xor.c
+++ b/drivers/dma/mv_xor.c
@@ -449,7 +449,7 @@ mv_xor_slot_cleanup(struct mv_xor_chan *mv_chan)
 static void mv_xor_tasklet(unsigned long data)
 {
 	struct mv_xor_chan *chan = (struct mv_xor_chan *) data;
-	__mv_xor_slot_cleanup(chan);
+	mv_xor_slot_cleanup(chan);
 }
 
 static struct mv_xor_desc_slot *
-- 
1.6.0.4


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

* Re: [PATCH] mv_xor: fix race in tasklet function
  2010-12-21 14:53 [PATCH] mv_xor: fix race in tasklet function Saeed Bishara
@ 2010-12-22 11:21 ` saeed bishara
  0 siblings, 0 replies; 2+ messages in thread
From: saeed bishara @ 2010-12-22 11:21 UTC (permalink / raw)
  To: Saeed Bishara, Dan Williams; +Cc: linux-raid

Dan, can you please merge this patch?

On Tue, Dec 21, 2010 at 4:53 PM, Saeed Bishara <saeed@marvell.com> wrote:
> use mv_xor_slot_cleanup() instead of __mv_xor_slot_cleanup() as the former function
> aquires the spin lock that needed to protect the drivers data.
>
> Signed-off-by: Saeed Bishara <saeed@marvell.com>
> ---
>  drivers/dma/mv_xor.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/dma/mv_xor.c b/drivers/dma/mv_xor.c
> index 411d5bf..a25f5f6 100644
> --- a/drivers/dma/mv_xor.c
> +++ b/drivers/dma/mv_xor.c
> @@ -449,7 +449,7 @@ mv_xor_slot_cleanup(struct mv_xor_chan *mv_chan)
>  static void mv_xor_tasklet(unsigned long data)
>  {
>        struct mv_xor_chan *chan = (struct mv_xor_chan *) data;
> -       __mv_xor_slot_cleanup(chan);
> +       mv_xor_slot_cleanup(chan);
>  }
>
>  static struct mv_xor_desc_slot *
> --
> 1.6.0.4
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2010-12-22 11:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-21 14:53 [PATCH] mv_xor: fix race in tasklet function Saeed Bishara
2010-12-22 11:21 ` saeed bishara

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.