Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ebc45999 authored by Horst Hummel's avatar Horst Hummel Committed by Martin Schwidefsky
Browse files

[S390] dasd set offline kernel bug.



The request queue flush function of the dasd driver has to dequeue
the requests first and then call the end request function. Otherwise
a kernel bug in ll_rw_block.c might get triggered.

Signed-off-by: default avatarHorst Hummel <horst.hummel@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 5cb900a3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1730,8 +1730,8 @@ dasd_flush_request_queue(struct dasd_device * device)
		req = elv_next_request(device->request_queue);
		if (req == NULL)
			break;
		dasd_end_request(req, 0);
		blkdev_dequeue_request(req);
		dasd_end_request(req, 0);
	}
	spin_unlock_irq(&device->request_queue_lock);
}