On 2022/01/28 16:08, Christoph Hellwig wrote: > Yes. To completely remove it we'd need something like: > > - remove lo_refcnt and rely on bd_openers on the whole device bdev > - add a block layer flag to temporarily disable a gendisk and fail > all opens for it. > > For now I'd really like to just fix the regression, though. lo_open() does not need to use lo->lo_mutex. For now just deferring lo_open()/lo_release() to task work context will fix the regression.