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>
This commit is contained in:
committed by
John W. Linville
parent
e6fce5b916
commit
7d283aee50
@ -932,7 +932,7 @@ static struct ehci_qh *qh_append_tds (
|
||||
|
||||
list_del (&qtd->qtd_list);
|
||||
list_add (&dummy->qtd_list, qtd_list);
|
||||
__list_splice (qtd_list, qh->qtd_list.prev);
|
||||
list_splice_tail(qtd_list, &qh->qtd_list);
|
||||
|
||||
ehci_qtd_init(ehci, qtd, qtd->qtd_dma);
|
||||
qh->dummy = qtd;
|
||||
|
Reference in New Issue
Block a user