From cd9a1f5f2aeabee7645fa56a2ecca5bd0465ddc9 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Tue, 11 Mar 2003 03:13:16 -0800 Subject: [PATCH] [PATCH] unplugging fix Patch from Neil Brown Allow auto-unplugging to work for devices that do it themselves. Auto-unplugging - and blk_unplug_work in particular - assumes that the device uses "generic_unplug_device" for unplugging, but some devices don't. md crashes. So blk_unplug_work should use ->unplug_fn --- drivers/block/ll_rw_blk.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/block/ll_rw_blk.c b/drivers/block/ll_rw_blk.c index 691ccc1f0d60a..9d64f8cc690db 100644 --- a/drivers/block/ll_rw_blk.c +++ b/drivers/block/ll_rw_blk.c @@ -1040,7 +1040,8 @@ void generic_unplug_device(void *data) static void blk_unplug_work(void *data) { - generic_unplug_device(data); + request_queue_t *q = data; + q->unplug_fn(q); } static void blk_unplug_timeout(unsigned long data) -- 2.53.0