提交 c81a4f07 编写于 作者: Z Zheng Zengkai

Revert "bcache: Delay to invalidate cache data in writearound write"

euleros/rtos inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I4LOJ6
CVE: NA

--------------------------------

This patch set introduce many conflicts while backporting mainline
bcache patches, revert it temporarily.

This reverts commit 1751c6ad.
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Acked-by: NXie XiuQi <xiexiuqi@huawei.com>
上级 18f85aef
......@@ -993,11 +993,8 @@ static void cached_dev_write_complete(struct closure *cl)
struct search *s = container_of(cl, struct search, cl);
struct cached_dev *dc = container_of(s->d, struct cached_dev, disk);
if (!s->iop.bypass)
closure_call(&s->iop.cl, bch_data_insert, NULL, cl);
up_read_non_owner(&dc->writeback_lock);
continue_at(cl, cached_dev_bio_complete, NULL);
cached_dev_bio_complete(cl);
}
static void cached_dev_write(struct cached_dev *dc, struct search *s)
......@@ -1080,8 +1077,7 @@ static void cached_dev_write(struct cached_dev *dc, struct search *s)
}
insert_data:
if (!s->iop.bypass)
closure_call(&s->iop.cl, bch_data_insert, NULL, cl);
closure_call(&s->iop.cl, bch_data_insert, NULL, cl);
continue_at(cl, cached_dev_write_complete, NULL);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册