The obvious fix is to not call unregister_blkdev under loop_ctl_mutex. Which is pretty pointless anyway - I have a series to fix that but it might need some reordering to move this to the front.
The obvious fix is to not call unregister_blkdev under loop_ctl_mutex. Which is pretty pointless anyway - I have a series to fix that but it might need some reordering to move this to the front.