Skip to content
Commit f84db676 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Paul Gortmaker
Browse files

bdi: add a ->dev_name field to struct backing_dev_info

commit 6bd87eec upstream.

Cache a copy of the name for the life time of the backing_dev_info
structure so that we can reference it even after unregistering.

Fixes: 68f23b89

 ("memcg: fix a crash in wb_workfn when a device disappears")
Reported-by: default avatarYufen Yu <yuyufen@huawei.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarJan Kara <jack@suse.cz>
Reviewed-by: default avatarBart Van Assche <bvanassche@acm.org>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
parent 52dba4a1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment