ubd: move set_disk_ro to ubd_add
authorChristoph Hellwig <hch@lst.de>
Thu, 22 Feb 2024 07:24:15 +0000 (08:24 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 27 Feb 2024 21:21:15 +0000 (14:21 -0700)
commit5e4e1ff820e855a328cf2efb795c079f3a58abbe
tree822a3929b3bead94e177270bda6b2bd802669ebb
parent58ebe3e748353960fcc3b2661273737f45d197b1
ubd: move set_disk_ro to ubd_add

No need to delay this until open time.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Richard Weinberger <richard@nod.at>
Link: https://lore.kernel.org/r/20240222072417.3773131-6-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
arch/um/drivers/ubd_kern.c