On 7/22/24 2:16 AM, Yang Yang wrote:
SCSI does not set GD_OWNS_QUEUE, so QUEUE_FLAG_DYING is not set in this scenario. This is a classic ABBA deadlock. To fix the deadlock, make sure we don't try to acquire disk->open_mutex after freezing the queue. Signed-off-by: Yang Yang <yang.yang@xxxxxxxx>
Fixes: and Cc: stable tags are missing. Otherwise this patch looks fine to me, hence: Reviewed-by: Bart Van Assche <bvanassche@xxxxxxx>