From: Horst Hummel Date: Wed, 9 Aug 2006 08:30:22 +0000 (+0200) Subject: [S390] dasd set offline kernel bug. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ebc4599990898ecaaace7ed40dfad6d8d9f2a24a;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [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: Horst Hummel Signed-off-by: Martin Schwidefsky --- diff --git a/drivers/s390/block/dasd.c b/drivers/s390/block/dasd.c index 4bf03fb67f8d..d8e9b95f0a1a 100644 --- a/drivers/s390/block/dasd.c +++ b/drivers/s390/block/dasd.c @@ -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); }