Commit 7bb503fc authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] floppy locking fix

redo_fd_request() needs to take the queue lock around the call to
elv_next_request().
parent 0391b9be
......@@ -2911,7 +2911,11 @@ static void redo_fd_request(void)
for (;;) {
if (!current_req) {
struct request *req = elv_next_request(&floppy_queue);
struct request *req;
spin_lock_irq(floppy_queue.queue_lock);
req = elv_next_request(&floppy_queue);
spin_unlock_irq(floppy_queue.queue_lock);
if (!req) {
do_floppy = NULL;
unlock_fdc();
......
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