diff options
author | Jens Axboe <axboe@kernel.dk> | 2018-11-13 03:19:32 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-11-13 03:19:32 +0300 |
commit | d16a67667c611f00b5ec0017ad2b18f473af13d2 (patch) | |
tree | 17499f39a767222e983f1d1b6be58dc1f0bd60f9 /drivers/ide/ide-probe.c | |
parent | 628bd85947091830a8c4872adfd5ed1d515a9cf2 (diff) | |
download | linux-d16a67667c611f00b5ec0017ad2b18f473af13d2.tar.xz |
ide: don't clear special on ide_queue_rq() entry
We can't use RQF_DONTPREP to see if we should clear ->special,
as someone could have set that while inserting the request. Make
sure we clear it in our ->initialize_rq_fn() helper instead.
Fixes: 22ce0a7ccf23 ("ide: don't use req->special")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/ide/ide-probe.c')
-rw-r--r-- | drivers/ide/ide-probe.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/ide/ide-probe.c b/drivers/ide/ide-probe.c index 40384838e439..63627be0811a 100644 --- a/drivers/ide/ide-probe.c +++ b/drivers/ide/ide-probe.c @@ -746,6 +746,7 @@ static void ide_initialize_rq(struct request *rq) { struct ide_request *req = blk_mq_rq_to_pdu(rq); + req->special = NULL; scsi_req_init(&req->sreq); req->sreq.sense = req->sense; } |