RE: Device removal lockup with mptsas + scsi-mq

2015-02-04 Thread Elliott, Robert (Server Storage)
> -Original Message- > From: linux-scsi-ow...@vger.kernel.org [mailto:linux-scsi- > ow...@vger.kernel.org] On Behalf Of Tony Battersby > Sent: Wednesday, 04 February, 2015 12:39 PM > To: linux-scsi; Jens Axboe; Christoph Hellwig > Cc: Sreekanth Reddy > Subject: Devic

Device removal lockup with mptsas + scsi-mq

2015-02-04 Thread Tony Battersby
Summary: When removing a SCSI device with scsi-mq, blk_mq_update_tag_set_depth() ends up waiting for commands to *other* SCSI devices to complete. If those other SCSI devices are in the SDEV_BLOCK state, then the removal deadlocks. Setup: kernel 3.19-rc7 with the following additional commits: