Skip to content

Commit f048427

Browse files
Christoph Hellwigaxboe
authored andcommitted
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>
1 parent b2101f6 commit f048427

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎drivers/ide/ide-pm.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,6 @@ void ide_complete_pm_rq(ide_drive_t *drive, struct request *rq)
201201
{
202202
struct request_queue *q = drive->queue;
203203
struct ide_pm_state *pm = ide_req(rq)->special;
204-
unsigned long flags;
205204

206205
ide_complete_power_step(drive, rq);
207206
if (pm->pm_step != IDE_PM_COMPLETED)
@@ -211,12 +210,10 @@ void ide_complete_pm_rq(ide_drive_t *drive, struct request *rq)
211210
printk("%s: completing PM request, %s\n", drive->name,
212211
(ide_req(rq)->type == ATA_PRIV_PM_SUSPEND) ? "suspend" : "resume");
213212
#endif
214-
spin_lock_irqsave(&q->queue_lock, flags);
215213
if (ide_req(rq)->type == ATA_PRIV_PM_SUSPEND)
216214
blk_mq_stop_hw_queues(q);
217215
else
218216
drive->dev_flags &= ~IDE_DFLAG_BLOCKED;
219-
spin_unlock_irqrestore(&q->queue_lock, flags);
220217

221218
drive->hwif->rq = NULL;
222219

0 commit comments

Comments
 (0)