diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2008-08-06 18:21:26 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-08-07 09:49:42 -0400 |
commit | 7d283aee50351ec19eaf654a8690d77c4e1dff50 (patch) | |
tree | 8b0079f19db09ecd264cc2e8c428033fe725015f /drivers/dma | |
parent | e6fce5b916cd7f7f79b2b3e53ba74bbfc1d7cf8b (diff) |
list.h: Add list_splice_tail() and list_splice_tail_init()
If you are using linked lists for queues list_splice() will not do what
you would expect even if you use the elements passed reversed. We need
to handle these differently. We add list_splice_tail() and
list_splice_tail_init().
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/ioat_dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/ioat_dma.c b/drivers/dma/ioat_dma.c index a52156e56886..bc8c6e3470ca 100644 --- a/drivers/dma/ioat_dma.c +++ b/drivers/dma/ioat_dma.c | |||
@@ -551,7 +551,7 @@ static dma_cookie_t ioat1_tx_submit(struct dma_async_tx_descriptor *tx) | |||
551 | /* write address into NextDescriptor field of last desc in chain */ | 551 | /* write address into NextDescriptor field of last desc in chain */ |
552 | to_ioat_desc(ioat_chan->used_desc.prev)->hw->next = | 552 | to_ioat_desc(ioat_chan->used_desc.prev)->hw->next = |
553 | first->async_tx.phys; | 553 | first->async_tx.phys; |
554 | __list_splice(&new_chain, ioat_chan->used_desc.prev); | 554 | list_splice_tail(&new_chain, &ioat_chan->used_desc); |
555 | 555 | ||
556 | ioat_chan->dmacount += desc_count; | 556 | ioat_chan->dmacount += desc_count; |
557 | ioat_chan->pending += desc_count; | 557 | ioat_chan->pending += desc_count; |