]> git.baikalelectronics.ru Git - kernel.git/commit
block: warn when putting the final reference on a registered disk
authorChristoph Hellwig <hch@lst.de>
Thu, 14 Oct 2021 13:02:31 +0000 (15:02 +0200)
committerJens Axboe <axboe@kernel.dk>
Sun, 17 Oct 2021 12:59:45 +0000 (06:59 -0600)
commit02955950cc8324ec9e687c1c1b968badca1580e5
tree6918dd9fdd14216f1a4a43dd1744ca8787c9e015
parentabfe26a5c8a4ebcd0f033f0f452a1259605ac8ad
block: warn when putting the final reference on a registered disk

Warn when the last reference on a live disk is put without calling
del_gendisk first.  There are some BDI related bug reports that look
like a case of this, so make sure we have the proper instrumentation
to catch it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20211014130231.1468538-1-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/genhd.c