diff options
author | Christoph Hellwig <hch@lst.de> | 2021-08-09 08:40:27 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-08-12 10:29:36 -0600 |
commit | b75f4aed88febe903bd40a6128b74edd2388417e (patch) | |
tree | 313a76723500623fee32f4a93b317785a5875e8e /fs | |
parent | 224b0683228c5f332f9cee615d85e75e9a347170 (diff) |
bcache: move the del_gendisk call out of bcache_device_free
Let the callers call del_gendisk so that we can check if add_disk
has been called properly for the cached device case instead of relying
on the block layer internal GENHD_FL_UP flag.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Coly Li <colyli@suse.de>
Link: https://lore.kernel.org/r/20210809064028.1198327-8-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions