mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 00:34:20 +08:00
RDMA/siw: Call llist_reverse_order in siw_run_sq
We can call the function to get fifo list. Signed-off-by: Guoqing Jiang <guoqing.jiang@linux.dev> Link: https://lore.kernel.org/r/20230821133255.31111-4-guoqing.jiang@linux.dev Acked-by: Bernard Metzler <bmt@zurich.ibm.com> Signed-off-by: Leon Romanovsky <leon@kernel.org>
This commit is contained in:
parent
bee024d204
commit
9dfccb6d0d
@ -1271,13 +1271,7 @@ int siw_run_sq(void *data)
|
||||
* llist_del_all returns a list with newest entry first.
|
||||
* Re-order list for fairness among QP's.
|
||||
*/
|
||||
while (active) {
|
||||
struct llist_node *tmp = active;
|
||||
|
||||
active = llist_next(active);
|
||||
tmp->next = fifo_list;
|
||||
fifo_list = tmp;
|
||||
}
|
||||
fifo_list = llist_reverse_order(active);
|
||||
while (fifo_list) {
|
||||
qp = container_of(fifo_list, struct siw_qp, tx_list);
|
||||
fifo_list = llist_next(fifo_list);
|
||||
|
Loading…
Reference in New Issue
Block a user