On 12/1/22 4:44 AM, Jan Kara wrote: > The condition detecting whether somebody else has the device exclusively > open in disk_scan_partitions() has a brownpaper bag bug. It triggers also > when nobody has the device exclusively open and we are coming from > BLKRRPART path. Interestingly this didn't have any adverse effects > during testing because tools update kernel's notion of the partition > table using ioctls and don't rely on BLKRRPART. Fix the bug before > somebody trips over it. I folded this in. It's funny because I did consider this when reviewing it, but then convinced myself it was fine... -- Jens Axboe