We can check if the waitqueue is actually active before calling wake_up() in order to avoid an unnecessary wake_up() if the reclaim thread is already running. Furthermore, the release barrier when zeroing needs_reclaim is unnecessary, so remove it. Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>fourteen
parent
6434ba1b52
commit
0787646d32
Loading…
Reference in new issue