bcache: remove retry_flush_write from struct cache_set
authorColy Li <colyli@suse.de>
Fri, 28 Jun 2019 11:59:57 +0000 (19:59 +0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 28 Jun 2019 13:39:18 +0000 (07:39 -0600)
In struct cache_set, retry_flush_write is added for commit c4dc2497d50d
("bcache: fix high CPU occupancy during journal") which is reverted in
previous patch.

Now it is useless anymore, and this patch removes it from bcache code.

Signed-off-by: Coly Li <colyli@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bcache/bcache.h
drivers/md/bcache/journal.c
drivers/md/bcache/sysfs.c

index cb268d7c6cea76224887e9cd35b5b26a90f26714..35396248a7d536db46aa1efb350ae44b5c26c155 100644 (file)
@@ -706,7 +706,6 @@ struct cache_set {
 
        atomic_long_t           reclaim;
        atomic_long_t           flush_write;
-       atomic_long_t           retry_flush_write;
 
        enum                    {
                ON_ERROR_UNREGISTER,
index 14a4e2c44de9b3e1bb906e50323ede9304022f87..1218e3cada3cd30c13d51d5dad85ab919d93b684 100644 (file)
@@ -447,7 +447,6 @@ retry:
                if (!btree_current_write(b)->journal) {
                        mutex_unlock(&b->write_lock);
                        /* We raced */
-                       atomic_long_inc(&c->retry_flush_write);
                        goto retry;
                }
 
index d62e2864310944f2dfda1cc67bc979ad8174e041..701a386a954caee47b44b0acab56e58763cfd000 100644 (file)
@@ -83,7 +83,6 @@ read_attribute(state);
 read_attribute(cache_read_races);
 read_attribute(reclaim);
 read_attribute(flush_write);
-read_attribute(retry_flush_write);
 read_attribute(writeback_keys_done);
 read_attribute(writeback_keys_failed);
 read_attribute(io_errors);
@@ -709,9 +708,6 @@ SHOW(__bch_cache_set)
        sysfs_print(flush_write,
                    atomic_long_read(&c->flush_write));
 
-       sysfs_print(retry_flush_write,
-                   atomic_long_read(&c->retry_flush_write));
-
        sysfs_print(writeback_keys_done,
                    atomic_long_read(&c->writeback_keys_done));
        sysfs_print(writeback_keys_failed,
@@ -936,7 +932,6 @@ static struct attribute *bch_cache_set_internal_files[] = {
        &sysfs_cache_read_races,
        &sysfs_reclaim,
        &sysfs_flush_write,
-       &sysfs_retry_flush_write,
        &sysfs_writeback_keys_done,
        &sysfs_writeback_keys_failed,