block: don't hold part0's refcount in IO path
authorMing Lei <ming.lei@redhat.com>
Fri, 8 May 2020 08:17:58 +0000 (16:17 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 13 May 2020 02:31:40 +0000 (20:31 -0600)
commit27eb3af9a37a85ca35f82830a8fc29753700058a
tree5f0cc279819eb461e5ef994b862c44b4186b26f8
parent520138c3b9425c615d1417687947d86821003319
block: don't hold part0's refcount in IO path

gendisk can't be gone when there is IO activity, so not hold
part0's refcount in IO path.

Signed-off-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Christoph Hellwig <hch@infradead.org>
Cc: Yufen Yu <yuyufen@huawei.com>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Hou Tao <houtao1@huawei.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk.h
block/genhd.c