Compare changes

Choose any two refs to compare.

+22
+22
include/linux/closure.h
··· 374 continue_at_nobarrier(cl, fn, wq); 375 } 376 377 #endif /* _LINUX_CLOSURE_H */
··· 374 continue_at_nobarrier(cl, fn, wq); 375 } 376 377 + #define __closure_wait_event(waitlist, _cond) \ 378 + do { \ 379 + struct closure cl; \ 380 + \ 381 + closure_init_stack(&cl); \ 382 + \ 383 + while (1) { \ 384 + closure_wait(waitlist, &cl); \ 385 + if (_cond) \ 386 + break; \ 387 + closure_sync(&cl); \ 388 + } \ 389 + closure_wake_up(waitlist); \ 390 + closure_sync(&cl); \ 391 + } while (0) 392 + 393 + #define closure_wait_event(waitlist, _cond) \ 394 + do { \ 395 + if (!(_cond)) \ 396 + __closure_wait_event(waitlist, _cond); \ 397 + } while (0) 398 + 399 #endif /* _LINUX_CLOSURE_H */