On Tue, 2017-04-25 at 13:53 -0700, Bart Van Assche wrote: > __scsi_remove_device() hangs if it is waiting for the SYNCHRONIZE CACHE > command submitted by the sd driver to finish if the block layer queue is > stopped and does not get restarted. This patch series avoids that that > hang occurs. > [ ... ] Hello Martin and James, Even with this version of this patch series there is still a lockup possible, namely if the sd events checker submits a TUR while a SCSI device is blocked and before __scsi_remove_device() calls device_del(). The latter function namely waits for sd_check_events() to finish. Bart.