bcache: Use blkdev_issue_discard()
The old asynchronous discard code was really a relic from when all the allocation code was asynchronous - now that allocation runs out of a dedicated thread there's no point in keeping around all that complicated machinery. Signed-off-by: Kent Overstreet <kmo@daterainc.com>
Este cometimento está contido em:
@@ -1725,8 +1725,6 @@ void bch_cache_release(struct kobject *kobj)
|
||||
if (ca->set)
|
||||
ca->set->cache[ca->sb.nr_this_dev] = NULL;
|
||||
|
||||
bch_cache_allocator_exit(ca);
|
||||
|
||||
bio_split_pool_free(&ca->bio_split_hook);
|
||||
|
||||
free_pages((unsigned long) ca->disk_buckets, ilog2(bucket_pages(ca)));
|
||||
@@ -1758,8 +1756,6 @@ static int cache_alloc(struct cache_sb *sb, struct cache *ca)
|
||||
__module_get(THIS_MODULE);
|
||||
kobject_init(&ca->kobj, &bch_cache_ktype);
|
||||
|
||||
INIT_LIST_HEAD(&ca->discards);
|
||||
|
||||
bio_init(&ca->journal.bio);
|
||||
ca->journal.bio.bi_max_vecs = 8;
|
||||
ca->journal.bio.bi_io_vec = ca->journal.bio.bi_inline_vecs;
|
||||
|
Criar uma nova questão referindo esta
Bloquear um utilizador