]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: scsi-mq: Always unprepare before requeuing a request
authorBart Van Assche <bart.vanassche@wdc.com>
Wed, 30 Aug 2017 23:58:42 +0000 (16:58 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 1 Sep 2017 03:09:49 +0000 (23:09 -0400)
commit39072aeabe82a2d5e694bef97e7236682749f85d
tree0037ff3d93bb03e8b5578844447668afd2f0c4d6
parent438f4a14afde4a10c4012c3dd5a931c0a3b1fc07
scsi: scsi-mq: Always unprepare before requeuing a request

One of the two scsi-mq functions that requeue a request unprepares a
request before requeueing (scsi_io_completion()) but the other function
not (__scsi_queue_insert()). Make sure that a request is unprepared
before requeuing it.

Fixes: commit e7f1b97a6090 ("scsi: add support for a blk-mq based I/O path.")
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.com>
Cc: Damien Le Moal <damien.lemoal@wdc.com>
Cc: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_lib.c