aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-io.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/ide-io.c')
-rw-r--r--drivers/ide/ide-io.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/ide/ide-io.c b/drivers/ide/ide-io.c
index 9b9e8b1aae5e..3245c2dbda33 100644
--- a/drivers/ide/ide-io.c
+++ b/drivers/ide/ide-io.c
@@ -481,6 +481,9 @@ void do_ide_request(struct request_queue *q)
481 481
482 spin_unlock_irq(q->queue_lock); 482 spin_unlock_irq(q->queue_lock);
483 483
484 /* HLD do_request() callback might sleep, make sure it's okay */
485 might_sleep();
486
484 if (ide_lock_host(host, hwif)) 487 if (ide_lock_host(host, hwif))
485 goto plug_device_2; 488 goto plug_device_2;
486 489