On Sun 03-11-19 07:53:10, Jens Axboe wrote: > On 10/21/19 2:37 AM, Jan Kara wrote: > > Hello, > > > > I've been debugging for quite a long time strange issues with encrypted DVDs > > not being readable on Linux (bko#194965). In the end I've tracked down the > > problem to the fact that block device size is not updated when the media is > > inserted in case the DVD device is already open. This is IMO a bug in block > > device code as the size gets properly update in case the device has partition > > scanning enabled. The following series fixes the problem by refreshing disk > > size on each open even for devices with partition scanning disabled. > > It's really confusing to have different behavior for partition vs whole device. > This series looks good to me, the size change code is really hard to follow. > > I don't see any serious objections here, I'm going to queue this up for > 5.4. Thanks Jens! I'll look into refactoring the size change / revalidation code so that it's easier to understand what's going on... Honza -- Jan Kara <jack@xxxxxxxx> SUSE Labs, CR