On Monday 06 August 2012, qiang....@freescale.com wrote:
> 
> From: Qiang Liu <qiang....@freescale.com>
> 
> The use of spin_lock_irqsave() is a stronger locking mechanism than is
> required throughout the driver. The minimum locking required should be
> used instead. Interrupts will be turned off and context will be saved,
> there is needless to use irqsave.
> 
> Change all instances of spin_lock_irqsave() to spin_lock_bh().
> All manipulation of protected fields is done using tasklet context or
> weaker, which makes spin_lock_bh() the correct choice.
> 
> Cc: Dan Williams <dan.j.willi...@intel.com>
> Cc: Dan Williams <dan.j.willi...@gmail.com>
> Cc: Vinod Koul <vinod.k...@intel.com>
> Cc: Li Yang <le...@freescale.com>
> Cc: Timur Tabi <ti...@freescale.com>
> Signed-off-by: Qiang Liu <qiang....@freescale.com>
> Acked-by: Ira W. Snyder <i...@ovro.caltech.edu>

Acked-by: Arnd Bergmann <a...@arndb.de>

You could actually change the use of spin_lock_bh inside of the tasklet
function (dma_do_tasklet) do just spin_lock(), because softirqs are
already disabled there, but your version is also ok.
_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

Reply via email to