Skip to content

Commit

Permalink
Drop unnecessary lock
Browse files Browse the repository at this point in the history
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
  • Loading branch information
fabbione committed Dec 23, 2017
1 parent 380fd3f commit a341071
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions libknet/threads_pmtud.c
Expand Up @@ -485,12 +485,6 @@ void *_handle_pmtud_link_thread(void *data)
}

first_run = 0;
if (pthread_rwlock_rdlock(&knet_h->global_rwlock) != 0) {
log_debug(knet_h, KNET_SUB_PMTUD, "Unable to get read lock");
goto out_unlock;
}
knet_h->pmtud_firstrun = first_run;
pthread_mutex_unlock(&knet_h->pmtud_mutex);
}
}
out_unlock:
Expand Down

0 comments on commit a341071

Please sign in to comment.