Skip to content

Commit 9dfccb6

Browse files
Guoqing Jiangrleon
authored andcommitted
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>
1 parent bee024d commit 9dfccb6

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

drivers/infiniband/sw/siw/siw_qp_tx.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,13 +1271,7 @@ int siw_run_sq(void *data)
12711271
* llist_del_all returns a list with newest entry first.
12721272
* Re-order list for fairness among QP's.
12731273
*/
1274-
while (active) {
1275-
struct llist_node *tmp = active;
1276-
1277-
active = llist_next(active);
1278-
tmp->next = fifo_list;
1279-
fifo_list = tmp;
1280-
}
1274+
fifo_list = llist_reverse_order(active);
12811275
while (fifo_list) {
12821276
qp = container_of(fifo_list, struct siw_qp, tx_list);
12831277
fifo_list = llist_next(fifo_list);

0 commit comments

Comments
 (0)