diff options
author | Bart Van Assche <bart.vanassche@sandisk.com> | 2017-06-20 11:15:41 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2017-06-20 19:27:14 -0600 |
commit | ca18d6f769d22e931d3ba1e8d1ae81953547a417 (patch) | |
tree | 9ef36b3c1ca48caccbe907d0985a61bd6c86c420 /drivers/ide/ide-cd_ioctl.c | |
parent | d280bab305431c1836423f3cd6a5ff0e35a601ef (diff) | |
download | op-kernel-dev-ca18d6f769d22e931d3ba1e8d1ae81953547a417.zip op-kernel-dev-ca18d6f769d22e931d3ba1e8d1ae81953547a417.tar.gz |
block: Make most scsi_req_init() calls implicit
Instead of explicitly calling scsi_req_init() after blk_get_request(),
call that function from inside blk_get_request(). Add an
.initialize_rq_fn() callback function to the block drivers that need
it. Merge the IDE .init_rq_fn() function into .initialize_rq_fn()
because it is too small to keep it as a separate function. Keep the
scsi_req_init() call in ide_prep_sense() because it follows a
blk_rq_init() call.
References: commit 82ed4db499b8 ("block: split scsi_request out of struct request")
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.com>
Cc: Omar Sandoval <osandov@fb.com>
Cc: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/ide/ide-cd_ioctl.c')
-rw-r--r-- | drivers/ide/ide-cd_ioctl.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/ide/ide-cd_ioctl.c b/drivers/ide/ide-cd_ioctl.c index 55cd736..9d26c97 100644 --- a/drivers/ide/ide-cd_ioctl.c +++ b/drivers/ide/ide-cd_ioctl.c @@ -304,7 +304,6 @@ int ide_cdrom_reset(struct cdrom_device_info *cdi) int ret; rq = blk_get_request(drive->queue, REQ_OP_DRV_IN, __GFP_RECLAIM); - scsi_req_init(rq); ide_req(rq)->type = ATA_PRIV_MISC; rq->rq_flags = RQF_QUIET; blk_execute_rq(drive->queue, cd->disk, rq, 0); |