X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lnet%2Flnet%2Fapi-ni.c;h=d39e6b932380a86404a8bce2c26e36c6d1fe3bf6;hp=f09bc5f80c92d03476eaf46fa91e9c35fb1fb2ae;hb=5c883ea2748ae9e430a9cd863a9b630b2a74440a;hpb=f2d06d3c76a1d69447e7bd6fd29d8165be558d73 diff --git a/lnet/lnet/api-ni.c b/lnet/lnet/api-ni.c index f09bc5f..d39e6b9 100644 --- a/lnet/lnet/api-ni.c +++ b/lnet/lnet/api-ni.c @@ -1749,8 +1749,7 @@ lnet_ping_md_unlink(struct lnet_ping_buffer *pbuf, /* NB the MD could be busy; this just starts the unlink */ while (atomic_read(&pbuf->pb_refcnt) > 1) { CDEBUG(D_NET, "Still waiting for ping data MD to unlink\n"); - set_current_state(TASK_UNINTERRUPTIBLE); - schedule_timeout(cfs_time_seconds(1)); + schedule_timeout_uninterruptible(cfs_time_seconds(1)); } cfs_restore_sigs(blocked); @@ -1983,8 +1982,7 @@ static void lnet_push_target_fini(void) /* Wait for the unlink to complete. */ while (atomic_read(&the_lnet.ln_push_target->pb_refcnt) > 1) { CDEBUG(D_NET, "Still waiting for ping data MD to unlink\n"); - set_current_state(TASK_UNINTERRUPTIBLE); - schedule_timeout(cfs_time_seconds(1)); + schedule_timeout_uninterruptible(cfs_time_seconds(1)); } lnet_ping_buffer_decref(the_lnet.ln_push_target); @@ -2060,8 +2058,7 @@ lnet_clear_zombies_nis_locked(struct lnet_net *net) "Waiting for zombie LNI %s\n", libcfs_nid2str(ni->ni_nid)); } - set_current_state(TASK_UNINTERRUPTIBLE); - schedule_timeout(cfs_time_seconds(1)); + schedule_timeout_uninterruptible(cfs_time_seconds(1)); lnet_net_lock(LNET_LOCK_EX); continue; }