Redundant unplug_timer deletion

From: Chen, Kenneth W
Date: Mon Mar 01 2004 - 16:40:13 EST


The only path to get to del_timer call in __generic_unplug_device()
is when blk_remove_plug() returns 1, and in that case it already
removed the unplug_timer.

Patch to remove this redundant call.

- Ken

--- linux-2.6.3/drivers/block/ll_rw_blk.c 2004-02-17 19:57:16
+++ linux-2.6.3.blk/drivers/block/ll_rw_blk.c 2004-03-01 13:29:37
@@ -1136,8 +1136,6 @@ static inline void __generic_unplug_devi
if (!blk_remove_plug(q))
return;

- del_timer(&q->unplug_timer);
-
/*
* was plugged, fire request_fn if queue has stuff to do
*/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/