summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
8284e02)
This l_wait_event() call is equivalent to the more standard
wait_event_idle().
So switch over to wait_event_idle().
Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: I8e13360a40dd1eec740f597d649c0f230533eb3d
Reviewed-on: https://review.whamcloud.com/37610
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
struct ptlrpc_thread *athread = &lad->lad_thread;
struct lfsck_assistant_operations *lao = lad->lad_ops;
struct lfsck_assistant_req *lar;
struct ptlrpc_thread *athread = &lad->lad_thread;
struct lfsck_assistant_operations *lao = lad->lad_ops;
struct lfsck_assistant_req *lar;
- struct l_wait_info lwi = { 0 };
int rc = 0;
int rc1 = 0;
int rc2;
int rc = 0;
int rc1 = 0;
int rc2;
- l_wait_event(athread->t_ctl_waitq,
- !lfsck_assistant_req_empty(lad) ||
- test_bit(LAD_EXIT, &lad->lad_flags) ||
- test_bit(LAD_TO_POST, &lad->lad_flags) ||
- test_bit(LAD_TO_DOUBLE_SCAN, &lad->lad_flags),
- &lwi);
+ wait_event_idle(athread->t_ctl_waitq,
+ !lfsck_assistant_req_empty(lad) ||
+ test_bit(LAD_EXIT, &lad->lad_flags) ||
+ test_bit(LAD_TO_POST, &lad->lad_flags) ||
+ test_bit(LAD_TO_DOUBLE_SCAN, &lad->lad_flags));
if (unlikely(test_bit(LAD_EXIT, &lad->lad_flags)))
GOTO(cleanup, rc = lad->lad_post_result);
if (unlikely(test_bit(LAD_EXIT, &lad->lad_flags)))
GOTO(cleanup, rc = lad->lad_post_result);