summary refs log tree commit diff
path: root/drivers/connector/cn_proc.c
diff options
context:
space:
mode:
authorColy Li <colyli@suse.de>2018-12-13 22:53:52 +0800
committerJens Axboe <axboe@kernel.dk>2018-12-13 08:15:54 -0700
commitcb07ad63682ffcce10e9beaed7828a26780e3df9 (patch)
tree57601385261e5eb438c86454ebc7e88e373baec1 /drivers/connector/cn_proc.c
parentf383ae300c4b6466824fd5c8cbd0a6c4ed2b53d3 (diff)
downloadlinux-cb07ad63682ffcce10e9beaed7828a26780e3df9.tar.gz
bcache: introduce force_wake_up_gc()
Garbage collection thread starts to work when c->sectors_to_gc is
negative value, otherwise nothing will happen even the gc thread is
woken up by wake_up_gc().

force_wake_up_gc() sets c->sectors_to_gc to -1 before calling
wake_up_gc(), then gc thread may have chance to run if no one else sets
c->sectors_to_gc to a positive value before gc_should_run().

This routine can be called where the gc thread is woken up and required
to run in force.

Signed-off-by: Coly Li <colyli@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/connector/cn_proc.c')
0 files changed, 0 insertions, 0 deletions