X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fosp%2Fosp_dev.c;h=4b9488839109f6fea7c089b84e343ead7d012d5f;hb=fa9c4d0fee01d30d538a819f370f281431a43f68;hp=7dc44aa8885521c37dda49e95facc4eaac20d8d7;hpb=d0ca764a1a9116238f64f4f6e1ded116d5d28ed0;p=fs%2Flustre-release.git diff --git a/lustre/osp/osp_dev.c b/lustre/osp/osp_dev.c index 7dc44aa..4b94888 100644 --- a/lustre/osp/osp_dev.c +++ b/lustre/osp/osp_dev.c @@ -501,7 +501,6 @@ static int osp_disconnect(struct osp_device *d) */ static int osp_update_init(struct osp_device *osp) { - struct l_wait_info lwi = { 0 }; struct task_struct *task; ENTRY; @@ -536,9 +535,9 @@ static int osp_update_init(struct osp_device *osp) RETURN(rc); } - l_wait_event(osp->opd_update_thread.t_ctl_waitq, - osp_send_update_thread_running(osp) || - osp_send_update_thread_stopped(osp), &lwi); + wait_event_idle(osp->opd_update_thread.t_ctl_waitq, + osp_send_update_thread_running(osp) || + osp_send_update_thread_stopped(osp)); RETURN(0); }