]> git.baikalelectronics.ru Git - kernel.git/commit
raw: don't keep unopened block device around
authorChristoph Hellwig <hch@lst.de>
Mon, 21 Sep 2020 07:19:51 +0000 (09:19 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 23 Sep 2020 16:43:19 +0000 (10:43 -0600)
commit2819668e16cbd21bc6f519888df2bdffea4d64d1
tree30e46893867605d86fee6e3b2703c4c356090a52
parentc2220f4d33fd00ec835994550e59665677adcc42
raw: don't keep unopened block device around

Turn binding into a normal dev_t as the struct block device doesn't
buy us anything and use blkdev_open_by_dev to actually open it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/char/raw.c