Skip to content

Commit

Permalink
[PMTUd] if PMTUd is rescheduled, then enforce a new run
Browse files Browse the repository at this point in the history
the usleep between each PMTUd run will give time to the other threads to grab the wrlock

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
  • Loading branch information
fabbione committed Jan 3, 2018
1 parent 5b89b31 commit 063dcdf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libknet/threads_common.c
Expand Up @@ -45,6 +45,7 @@ static int pmtud_reschedule(knet_handle_t knet_h)
}

knet_h->pmtud_abort = 1;
knet_h->pmtud_forcerun = 1;

if (knet_h->pmtud_waiting) {
pthread_cond_signal(&knet_h->pmtud_cond);
Expand Down

0 comments on commit 063dcdf

Please sign in to comment.