Skip to content

Commit 5ae6538

Browse files
bvanasschemartinkpetersen
authored andcommitted
scsi: ide: Mark power management requests with RQF_PM instead of RQF_PREEMPT
This is another step that prepares for the removal of RQF_PREEMPT. Link: https://lore.kernel.org/r/20201209052951.16136-5-bvanassche@acm.org Cc: David S. Miller <davem@davemloft.net> Cc: Alan Stern <stern@rowland.harvard.edu> Cc: Can Guo <cang@codeaurora.org> Cc: Stanley Chu <stanley.chu@mediatek.com> Cc: Ming Lei <ming.lei@redhat.com> Cc: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Hannes Reinecke <hare@suse.de> Reviewed-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 96d86e6 commit 5ae6538

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/ide/ide-io.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ blk_status_t ide_issue_rq(ide_drive_t *drive, struct request *rq,
518518
*/
519519
if ((drive->dev_flags & IDE_DFLAG_BLOCKED) &&
520520
ata_pm_request(rq) == 0 &&
521-
(rq->rq_flags & RQF_PREEMPT) == 0) {
521+
(rq->rq_flags & RQF_PM) == 0) {
522522
/* there should be no pending command at this point */
523523
ide_unlock_port(hwif);
524524
goto plug_device;

drivers/ide/ide-pm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ int generic_ide_resume(struct device *dev)
7777
}
7878

7979
memset(&rqpm, 0, sizeof(rqpm));
80-
rq = blk_get_request(drive->queue, REQ_OP_DRV_IN, BLK_MQ_REQ_PREEMPT);
80+
rq = blk_get_request(drive->queue, REQ_OP_DRV_IN, BLK_MQ_REQ_PM);
8181
ide_req(rq)->type = ATA_PRIV_PM_RESUME;
8282
ide_req(rq)->special = &rqpm;
8383
rqpm.pm_step = IDE_PM_START_RESUME;

0 commit comments

Comments
 (0)