Whamcloud - gitweb
LU-17630 osc: add cond_resched() to osc_lru_shrink()
authorAlex Zhuravlev <bzzz@whamcloud.com>
Tue, 9 Apr 2024 10:35:00 +0000 (13:35 +0300)
committerAndreas Dilger <adilger@whamcloud.com>
Sat, 27 Apr 2024 22:27:32 +0000 (22:27 +0000)
commit3c639b294cecec2f2c59bc17945705d8c5e63690
treee00e0dfb7ac2e19adca81c2eeaba24b08fa44176
parentbc31bc100518f938a69b941eb78684e3e12d18d8
LU-17630 osc: add cond_resched() to osc_lru_shrink()

osc_lru_shrink() may need to handle lots of pages and this way
can block scheduling for long. add couple cond_resched() to
prevent kernel warnings and other thread's starvation.

Lustre-change: https://review.whamcloud.com/54346
Lustre-commit: 69eb7b89c7f36ec6a8970e87fc8859207f4b9c0c

Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Change-Id: I862c568ac777c0b929a1ffb61e246b079aee6718
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/54708
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/osc/osc_page.c