Skip to content
Snippets Groups Projects
Commit 8fff6d65 authored by Isaac Huang's avatar Isaac Huang
Browse files

- should iterate over peer_sendq and peer_activeq.

parent 1f152c64
No related branches found
No related tags found
No related merge requests found
......@@ -724,10 +724,10 @@ kptl_tx_t *
kptllnd_find_timed_out_tx(kptl_peer_t *peer)
{
kptl_tx_t *tx;
struct list_head *tmp;
struct list_head *ele;
list_for_each(tmp, &peer->peer_sendq) {
tx = list_entry(peer->peer_sendq.next, kptl_tx_t, tx_list);
list_for_each(ele, &peer->peer_sendq) {
tx = list_entry(ele, kptl_tx_t, tx_list);
if (time_after_eq(jiffies, tx->tx_deadline)) {
kptllnd_tx_addref(tx);
......@@ -735,8 +735,8 @@ kptllnd_find_timed_out_tx(kptl_peer_t *peer)
}
}
list_for_each(tmp, &peer->peer_activeq) {
tx = list_entry(peer->peer_activeq.next, kptl_tx_t, tx_list);
list_for_each(ele, &peer->peer_activeq) {
tx = list_entry(ele, kptl_tx_t, tx_list);
if (time_after_eq(jiffies, tx->tx_deadline)) {
kptllnd_tx_addref(tx);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment