Home
last modified time | relevance | path

Searched refs:CACHE_SET_IO_DISABLE (Results 1 - 16 of 16) sorted by relevance

/kernel/linux/linux-5.10/drivers/md/bcache/
H A Dwriteback.c220 * CACHE_SET_IO_DISABLE might be set via sysfs interface, in update_writeback_rate()
224 test_bit(CACHE_SET_IO_DISABLE, &c->flags)) { in update_writeback_rate()
248 * CACHE_SET_IO_DISABLE might be set via sysfs interface, in update_writeback_rate()
252 !test_bit(CACHE_SET_IO_DISABLE, &c->flags)) { in update_writeback_rate()
450 !test_bit(CACHE_SET_IO_DISABLE, &dc->disk.c->flags) && in read_dirty()
528 !test_bit(CACHE_SET_IO_DISABLE, &dc->disk.c->flags) && in read_dirty()
700 !test_bit(CACHE_SET_IO_DISABLE, &c->flags)) { in bch_writeback_thread()
715 test_bit(CACHE_SET_IO_DISABLE, &c->flags)) { in bch_writeback_thread()
770 !test_bit(CACHE_SET_IO_DISABLE, &c->flags) && in bch_writeback_thread()
H A Dalloc.c291 test_bit(CACHE_SET_IO_DISABLE, &ca->set->flags)) { \
399 /* No allocation if CACHE_SET_IO_DISABLE bit is set */ in bch_bucket_alloc()
400 if (unlikely(test_bit(CACHE_SET_IO_DISABLE, &ca->set->flags))) in bch_bucket_alloc()
495 /* No allocation if CACHE_SET_IO_DISABLE bit is set */ in __bch_bucket_alloc_set()
496 if (unlikely(test_bit(CACHE_SET_IO_DISABLE, &c->flags))) in __bch_bucket_alloc_set()
H A Dbcache.h499 * CACHE_SET_IO_DISABLE is set when bcache is stopping the whold cache set, all
506 #define CACHE_SET_IO_DISABLE 3 macro
940 if (unlikely(test_bit(CACHE_SET_IO_DISABLE, &c->flags))) { in closure_bio_submit()
951 * stopped by CACHE_SET_IO_DISABLE bit set, wait_for_kthread_stop() is
H A Dsysfs.c781 test_bit(CACHE_SET_IO_DISABLE, &c->flags)); in SHOW()
884 if (test_and_set_bit(CACHE_SET_IO_DISABLE, in SHOW_LOCKED()
886 pr_warn("CACHE_SET_IO_DISABLE already set\n"); in SHOW_LOCKED()
888 if (!test_and_clear_bit(CACHE_SET_IO_DISABLE, in SHOW_LOCKED()
890 pr_warn("CACHE_SET_IO_DISABLE already cleared\n"); in SHOW_LOCKED()
H A Dsuper.c1664 if (test_and_set_bit(CACHE_SET_IO_DISABLE, &c->flags)) in bch_cache_set_error()
1665 pr_info("CACHE_SET_IO_DISABLE already set\n"); in bch_cache_set_error()
1760 if (!test_bit(CACHE_SET_IO_DISABLE, &c->flags)) in cache_set_flush()
1781 * This function is only called when CACHE_SET_IO_DISABLE is set, which means
1854 if (test_bit(CACHE_SET_IO_DISABLE, &c->flags)) in __cache_set_unregister()
1988 WARN_ON(test_and_clear_bit(CACHE_SET_IO_DISABLE, &c->flags)); in bch_cache_set_alloc()
H A Drequest.c1180 if (unlikely((d->c && test_bit(CACHE_SET_IO_DISABLE, &d->c->flags)) || in cached_dev_submit_bio()
1284 if (unlikely(d->c && test_bit(CACHE_SET_IO_DISABLE, &d->c->flags))) { in flash_dev_submit_bio()
H A Dbtree.c1813 /* if CACHE_SET_IO_DISABLE set, gc thread should stop too */ in bch_btree_gc()
1824 } while (ret && !test_bit(CACHE_SET_IO_DISABLE, &c->flags)); in bch_btree_gc()
1861 test_bit(CACHE_SET_IO_DISABLE, &c->flags) || in bch_gc_thread()
1865 test_bit(CACHE_SET_IO_DISABLE, &c->flags)) in bch_gc_thread()
H A Djournal.c936 /* No journaling if CACHE_SET_IO_DISABLE set already */ in bch_journal()
937 if (unlikely(test_bit(CACHE_SET_IO_DISABLE, &c->flags))) in bch_journal()
/kernel/linux/linux-6.6/drivers/md/bcache/
H A Dwriteback.c258 * CACHE_SET_IO_DISABLE might be set via sysfs interface, in update_writeback_rate()
262 test_bit(CACHE_SET_IO_DISABLE, &c->flags)) { in update_writeback_rate()
294 * CACHE_SET_IO_DISABLE might be set via sysfs interface, in update_writeback_rate()
298 !test_bit(CACHE_SET_IO_DISABLE, &c->flags)) { in update_writeback_rate()
496 !test_bit(CACHE_SET_IO_DISABLE, &dc->disk.c->flags) && in read_dirty()
573 !test_bit(CACHE_SET_IO_DISABLE, &dc->disk.c->flags) && in read_dirty()
748 !test_bit(CACHE_SET_IO_DISABLE, &c->flags)) { in bch_writeback_thread()
763 test_bit(CACHE_SET_IO_DISABLE, &c->flags)) { in bch_writeback_thread()
827 !test_bit(CACHE_SET_IO_DISABLE, &c->flags) && in bch_writeback_thread()
H A Dalloc.c291 test_bit(CACHE_SET_IO_DISABLE, &ca->set->flags)) { \
399 /* No allocation if CACHE_SET_IO_DISABLE bit is set */ in bch_bucket_alloc()
400 if (unlikely(test_bit(CACHE_SET_IO_DISABLE, &ca->set->flags))) in bch_bucket_alloc()
494 /* No allocation if CACHE_SET_IO_DISABLE bit is set */ in __bch_bucket_alloc_set()
495 if (unlikely(test_bit(CACHE_SET_IO_DISABLE, &c->flags))) in __bch_bucket_alloc_set()
H A Dbcache.h505 * CACHE_SET_IO_DISABLE is set when bcache is stopping the whold cache set, all
512 #define CACHE_SET_IO_DISABLE 3 macro
939 if (unlikely(test_bit(CACHE_SET_IO_DISABLE, &c->flags))) { in closure_bio_submit()
950 * stopped by CACHE_SET_IO_DISABLE bit set, wait_for_kthread_stop() is
H A Dsysfs.c802 test_bit(CACHE_SET_IO_DISABLE, &c->flags)); in SHOW()
905 if (test_and_set_bit(CACHE_SET_IO_DISABLE, in SHOW_LOCKED()
907 pr_warn("CACHE_SET_IO_DISABLE already set\n"); in SHOW_LOCKED()
909 if (!test_and_clear_bit(CACHE_SET_IO_DISABLE, in SHOW_LOCKED()
911 pr_warn("CACHE_SET_IO_DISABLE already cleared\n"); in SHOW_LOCKED()
H A Dsuper.c1638 if (test_and_set_bit(CACHE_SET_IO_DISABLE, &c->flags)) in bch_cache_set_error()
1639 pr_info("CACHE_SET_IO_DISABLE already set\n"); in bch_cache_set_error()
1734 if (!test_bit(CACHE_SET_IO_DISABLE, &c->flags)) in cache_set_flush()
1755 * This function is only called when CACHE_SET_IO_DISABLE is set, which means
1828 if (test_bit(CACHE_SET_IO_DISABLE, &c->flags)) in __cache_set_unregister()
1962 WARN_ON(test_and_clear_bit(CACHE_SET_IO_DISABLE, &c->flags)); in bch_cache_set_alloc()
H A Drequest.c1179 if (unlikely((d->c && test_bit(CACHE_SET_IO_DISABLE, &d->c->flags)) || in cached_dev_submit_bio()
1284 if (unlikely(d->c && test_bit(CACHE_SET_IO_DISABLE, &d->c->flags))) { in flash_dev_submit_bio()
H A Dbtree.c1834 /* if CACHE_SET_IO_DISABLE set, gc thread should stop too */ in bch_btree_gc()
1845 } while (ret && !test_bit(CACHE_SET_IO_DISABLE, &c->flags)); in bch_btree_gc()
1882 test_bit(CACHE_SET_IO_DISABLE, &c->flags) || in bch_gc_thread()
1886 test_bit(CACHE_SET_IO_DISABLE, &c->flags)) in bch_gc_thread()
H A Djournal.c931 /* No journaling if CACHE_SET_IO_DISABLE set already */ in bch_journal()
932 if (unlikely(test_bit(CACHE_SET_IO_DISABLE, &c->flags))) in bch_journal()

Completed in 32 milliseconds