Commit e38bead1 authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz Committed by Linus Torvalds

[PATCH] ide-tape: fix "sleeping function called from invalid context"

From: Willem Riede <wrlk@riede.org>
parent 49dd3fd8
......@@ -3212,7 +3212,7 @@ static void idetape_wait_for_request (ide_drive_t *drive, struct request *rq)
#endif /* IDETAPE_DEBUG_BUGS */
rq->waiting = &wait;
tape->waiting = &wait;
spin_unlock(&tape->spinlock);
spin_unlock_irq(&tape->spinlock);
wait_for_completion(&wait);
/* The stage and its struct request have been deallocated */
tape->waiting = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment