dmaengine: mv_xor: improve descriptors list handling and reduce locking
authorLior Amsalem <alior@marvell.com>
Tue, 26 May 2015 13:07:36 +0000 (15:07 +0200)
committerVinod Koul <vinod.koul@intel.com>
Wed, 10 Jun 2015 16:48:31 +0000 (22:18 +0530)
commitfbea28a2afb4251f985af52eb0180f097acaee16
treef8f88b492c57092e095878d3d59bfbfabecc1fcc
parentf1d25e0a9b1a6519580ddf5a7e5538093a504fcd
dmaengine: mv_xor: improve descriptors list handling and reduce locking

This patch change the way free descriptors are marked.

Instead of having a field for descriptor in use, all the descriptors in the
all_slots list are free for use.

This simplify the allocation method and reduce the locking needed.

Signed-off-by: Lior Amsalem <alior@marvell.com>
Reviewed-by: Ofer Heifetz <oferh@marvell.com>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/mv_xor.c
drivers/dma/mv_xor.h