Thread (76 messages) 76 messages, 8 authors, 2021-06-07

Re: [PATCH 12/26] bcache: convert to blk_alloc_disk/blk_cleanup_disk

From: Christoph Hellwig <hch@lst.de>
Date: 2021-05-21 06:23:08
Also in: dm-devel, linux-bcache, linux-block, linux-m68k, linux-mmc, linux-s390, linuxppc-dev, nvdimm

On Fri, May 21, 2021 at 02:15:32PM +0800, Coly Li wrote:
The  above 2 lines are added on purpose to prevent an refcount
underflow. It is from commit 86da9f736740 ("bcache: fix refcount
underflow in bcache_device_free()").

Maybe add a parameter to blk_cleanup_disk() or checking (disk->flags &
GENHD_FL_UP) inside blk_cleanup_disk() ?
Please take a look at patch 4 in the series.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help