Whamcloud - gitweb
LU-15082 osp: invalidate statfs data from the timer callback 99/45199/11
authorAlex Zhuravlev <bzzz@whamcloud.com>
Tue, 12 Oct 2021 05:26:21 +0000 (08:26 +0300)
committerOleg Drokin <green@whamcloud.com>
Sat, 11 Jun 2022 05:31:48 +0000 (05:31 +0000)
commita75f269cbdaed52985893cfbdebb35e9a2b484dd
tree819d8069ef3334b9763a91e162e2949941448cf5
parent4027395fe463b6ea11084ff2af43ba0732ad0ddb
LU-15082 osp: invalidate statfs data from the timer callback

osp_statfs_timer_cb() can be called just before statfs data gets
stale. this in turn may cause early wakeup to the precreate thread
which would find statfs data still up-to-data and go back to slepp.
if no precreate happens to this OSP (e.g. due to current space
usage), then the precreate thread will stay asleep for a long time,
statfs data won't get refreshed and this may block new objects
on the corresponding OST.

Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Change-Id: I86e16eed6f1068702db696a9ddec7a22994180b7
Reviewed-on: https://review.whamcloud.com/45199
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Mike Pershin <mpershin@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/osp/osp_precreate.c