]> git.baikalelectronics.ru Git - kernel.git/commit
block: don't set GENHD_FL_NO_PART for hidden gendisks
authorChristoph Hellwig <hch@lst.de>
Mon, 22 Nov 2021 13:06:23 +0000 (14:06 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 29 Nov 2021 13:38:35 +0000 (06:38 -0700)
commita7f8405daac7903a699c7202c32c1e2672975627
tree935bd15a1154bdab12058fbe4424b563e08b359e
parent7a673834a3ddbee3f9994bb09e6526d87602c909
block: don't set GENHD_FL_NO_PART for hidden gendisks

Hidden gendisks can't be opened using blkdev_get_*, so we can't really
reach any of the partition scanning paths or partitioning ioctls except
for the initial partition scan from add_disk.

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