]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: zero per-cmd driver data before each I/O
authorChristoph Hellwig <hch@lst.de>
Tue, 21 Feb 2017 09:04:55 +0000 (10:04 +0100)
committerJens Axboe <axboe@fb.com>
Tue, 21 Feb 2017 19:51:54 +0000 (12:51 -0700)
commit65e893dccd206bbb3945e67a1814881cf0f13da4
tree2500c4a89cae0d5363fe930ffeb2ff14626babb2
parent260d9a81be2e666f56a3c80bba0a2f11dca17228
scsi: zero per-cmd driver data before each I/O

Without this drivers that don't clear the state themselves can see off
effects.  For example Hyper-V VMs using the storvsc driver will often
hang during boot due to uncleared Test Unit Ready failures.

Fixes: 83b420c0 ("scsi: allocate scsi_cmnd structures as part of struct request")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reported-by: Dexuan Cui <decui@microsoft.com>
Tested-by: Dexuan Cui <decui@microsoft.com>
Reviewed-by: Bart Van Assche <bart.vanassche@sandisk.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/scsi/scsi_lib.c