scsi: Call scsi_initialize_rq() for filesystem requests
authorBart Van Assche <bart.vanassche@wdc.com>
Wed, 30 Aug 2017 23:58:39 +0000 (16:58 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 1 Sep 2017 03:06:12 +0000 (23:06 -0400)
commit64104f703212ff50e855bb2e2fa80d71db62c521
tree13179e6dcb14cdde2fb7b2763bfcf6537dfac8c3
parent3515832cc61467bfb87191a30401de1700e9956a
scsi: Call scsi_initialize_rq() for filesystem requests

If a pass-through request is submitted then blk_get_request()
initializes that request by calling scsi_initialize_rq(). Also call this
function for filesystem requests. Introduce CMD_INITIALIZED to keep
track of whether or not a request has already been initialized.

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>
drivers/scsi/scsi_lib.c
include/scsi/scsi_cmnd.h