Whamcloud - gitweb
LU-17630 osc: add cond_resched() to osc_lru_shrink() 46/54346/6
authorAlex Zhuravlev <bzzz@whamcloud.com>
Mon, 11 Mar 2024 07:42:24 +0000 (10:42 +0300)
committerOleg Drokin <green@whamcloud.com>
Tue, 23 Apr 2024 19:55:59 +0000 (19:55 +0000)
commit69eb7b89c7f36ec6a8970e87fc8859207f4b9c0c
tree3974dd1258bf4cb4636cfa1fa90eb184d130486b
parent6de94eb8212bcfed616e4e8958e2a31ddbb94c50
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.

Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Change-Id: I862c568ac777c0b929a1ffb61e246b079aee6718
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54346
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Patrick Farrell <patrick.farrell@oracle.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/osc/osc_page.c