[PATCH] cfq_cic_link: fix usage of wrong cfq_io_context
authorOleg Nesterov <oleg@tv-sign.ru>
Mon, 21 Aug 2006 06:36:12 +0000 (08:36 +0200)
committerJens Axboe <axboe@nelson.home.kernel.dk>
Mon, 21 Aug 2006 08:02:54 +0000 (10:02 +0200)
Obviously, cfq_cic_link() shouldn't free a just allocated cfq_io_context?
The dead key is from __cic, so drop that.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: Jens Axboe <axboe@suse.de>
block/cfq-iosched.c

index aae3123..3a3aee0 100644 (file)
@@ -1561,7 +1561,7 @@ restart:
                /* ->key must be copied to avoid race with cfq_exit_queue() */
                k = __cic->key;
                if (unlikely(!k)) {
-                       cfq_drop_dead_cic(ioc, cic);
+                       cfq_drop_dead_cic(ioc, __cic);
                        goto restart;
                }