diff options
author | Christoph Hellwig <hch@lst.de> | 2018-11-16 09:10:05 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-11-16 09:17:02 -0700 |
commit | f04842734c7a68381ab3cb45628ffb3ff1029490 (patch) | |
tree | 94adc330c45e384d3f3c916884c98e7346184a23 /drivers/ide | |
parent | b2101f655f8f6bd510154364e24d1cdba037133f (diff) | |
download | linux-stable-f04842734c7a68381ab3cb45628ffb3ff1029490.tar.gz linux-stable-f04842734c7a68381ab3cb45628ffb3ff1029490.tar.bz2 linux-stable-f04842734c7a68381ab3cb45628ffb3ff1029490.zip |
ide: don't acquire queue_lock in ide_complete_pm_rq
blk_mq_stop_hw_queues doesn't need any locking, and the ide
dev_flags field isn't protected by it either.
Reviewed-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/ide')
-rw-r--r-- | drivers/ide/ide-pm.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/ide/ide-pm.c b/drivers/ide/ide-pm.c index 56690f523100..192e6c65d34e 100644 --- a/drivers/ide/ide-pm.c +++ b/drivers/ide/ide-pm.c @@ -201,7 +201,6 @@ void ide_complete_pm_rq(ide_drive_t *drive, struct request *rq) { struct request_queue *q = drive->queue; struct ide_pm_state *pm = ide_req(rq)->special; - unsigned long flags; ide_complete_power_step(drive, rq); if (pm->pm_step != IDE_PM_COMPLETED) @@ -211,12 +210,10 @@ void ide_complete_pm_rq(ide_drive_t *drive, struct request *rq) printk("%s: completing PM request, %s\n", drive->name, (ide_req(rq)->type == ATA_PRIV_PM_SUSPEND) ? "suspend" : "resume"); #endif - spin_lock_irqsave(&q->queue_lock, flags); if (ide_req(rq)->type == ATA_PRIV_PM_SUSPEND) blk_mq_stop_hw_queues(q); else drive->dev_flags &= ~IDE_DFLAG_BLOCKED; - spin_unlock_irqrestore(&q->queue_lock, flags); drive->hwif->rq = NULL; |