Patch "bcache: do not subtract sectors_to_gc for bypassed IO" has been added to the 4.13-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
bcache: do not subtract sectors_to_gc for bypassed IO
to the 4.13-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
bcache-do-not-subtract-sectors_to_gc-for-bypassed-io.patch
and it can be found in the queue-4.13 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
69daf03adef5f7bc13e0ac86b4b8007df1767aabMon Sep 17 00:00:00 2001
From: Tang Junhui <[email protected]>
Date: Wed, 6 Sep 2017 14:25:53 +0800
Subject: bcache: do not subtract sectors_to_gc for bypassed IO
From: Tang Junhui <[email protected]>
commit 69daf03adef5f7bc13e0ac86b4b8007df1767aab upstream.
Since bypassed IOs use no bucket, so do not subtract sectors_to_gc to trigger gc thread.
--- drivers/md/bcache/request.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/md/bcache/request.c +3 -3
@@ -196,12 +196,12 @@ static void bch_data_insert_start(struct struct data_insert_op *op = container_of(cl, struct data_insert_op, cl);struct bio *bio = op->bio, *n; -if (atomic_sub_return (bio_sectors (bio), &op->c->sectors_to_gc) <0 ) -wake_up_gc (op->c); -if (op->bypass)return bch_data_invalidate (cl); +if (atomic_sub_return (bio_sectors (bio), &op->c->sectors_to_gc) <0 ) +wake_up_gc (op->c); +/* * Journal writes are marked REQ_PREFLUSH; if the original write was a * flush, it'll wait on the journal write.
Patches currently in stable-queue which might be from [email protected] are
queue-4.13/bcache-do-not-subtract-sectors_to_gc-for-bypassed-io.patch queue-4.13/bcache-correct-cache_dirty_target-in-__update_writeback_rate.patch queue-4.13/bcache-fix-for-gc-and-write-back-race.patch queue-4.13/bcache-initialize-dirty-stripes-in-flash_dev_run.patch queue-4.13/bcache-fix-sequential-large-write-io-bypass.patch