Re: [PATCH 7/7] ubd: open the backing files in ubd_add
- Ursprüngliche Mail - > Von: "hch" > An: "richard" , "anton ivanov" > , "Johannes Berg" > , "Jens Axboe" > CC: "linux-um" , "linux-block" > > Gesendet: Donnerstag, 22. Februar 2024 08:24:17
[PATCH 7/7] ubd: open the backing files in ubd_add
Opening the backing device only when the block device is opened is a bit weird as no one configures block devices to not use them. Opend them at add time, close them at remove time and remove the now superflous opened counter as remove can simply check for disk_openers. Signed-off-by: Christoph He