[PATCH] mv_xor: fix race in tasklet function

[PATCH] mv_xor: fix race in tasklet function

am 21.12.2010 15:53:39 von 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
---
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

Re: [PATCH] mv_xor: fix race in tasklet function

am 22.12.2010 12:21:43 von saeed bishara

Dan, can you please merge this patch?

On Tue, Dec 21, 2010 at 4:53 PM, Saeed Bishara wrot=
e:
> use mv_xor_slot_cleanup() instead of __mv_xor_slot_cleanup() as the f=
ormer function
> aquires the spin lock that needed to protect the drivers data.
>
> Signed-off-by: Saeed Bishara
> ---
>  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 =3D (struct mv_xo=
r_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" i=
n
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html