• Coly Li's avatar
    bcache: Revert "bcache: shrink btree node cache after bch_btree_check()" · 309cc719
    Coly Li authored
    This reverts commit 1df3877f.
    
    In my testing, sometimes even all the cached btree nodes are freed,
    creating gc and allocator kernel threads may still fail. Finally it
    turns out that kthread_run() may fail if there is pending signal for
    current task. And the pending signal is sent from OOM killer which
    is triggered by memory consuption in bch_btree_check().
    
    Therefore explicitly shrinking bcache btree node here does not help,
    and after the shrinker callback is improved, as well as pending signals
    are ignored before creating kernel threads, now such operation is
    unncessary anymore.
    
    This patch reverts the commit 1df3877f ("bcache: shrink btree node
    cache after bch_btree_check()") because we have better improvement now.
    Signed-off-by: default avatarColy Li <colyli@suse.de>
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    309cc719
super.c 66.2 KB