summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_debugfs.c
diff options
context:
space:
mode:
authorBart Van Assche2017-08-31 01:58:40 +0200
committerMartin K. Petersen2017-09-01 05:07:49 +0200
commit832889f5ed45ec90c76f6eb97e64baf845929007 (patch)
treebd841e01a8b28d9000bfd2930ad74918b6100c17 /drivers/scsi/scsi_debugfs.c
parentscsi: Call scsi_initialize_rq() for filesystem requests (diff)
downloadkernel-qcow2-linux-832889f5ed45ec90c76f6eb97e64baf845929007.tar.gz
kernel-qcow2-linux-832889f5ed45ec90c76f6eb97e64baf845929007.tar.xz
kernel-qcow2-linux-832889f5ed45ec90c76f6eb97e64baf845929007.zip
scsi: Improve requeuing behavior
Requests are unprepared and reprepared when being requeued. Avoid that requeuing resets .jiffies_at_alloc and .retries by initializing these two member variables from inside scsi_initialize_rq() and by preserving both member variables when preparing a request. This patch affects the requeuing behavior of both the legacy scsi and the scsi-mq code paths. Reported-by: Brian King <brking@linux.vnet.ibm.com> References: https://lkml.org/lkml/2017/8/18/923 ("Re: [BUG][bisected 270065e] linux-next fails to boot on powerpc") Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com> Cc: Christoph Hellwig <hch@lst.de> Cc: Brian King <brking@linux.vnet.ibm.com> Cc: Hannes Reinecke <hare@suse.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>
Diffstat (limited to 'drivers/scsi/scsi_debugfs.c')
0 files changed, 0 insertions, 0 deletions