We don't need to pin ->key down; ->cfqq->cfqd will do that for us.
Incidentally, that stops the leak we had - that reference was never
dropped.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
ioc->set_ioprio = cfq_ioc_set_ioprio;
cic->ioc = ioc;
cic->key = cfqd;
- atomic_inc(&cfqd->ref);
} else {
struct cfq_io_context *__cic;
__cic->ioc = ioc;
__cic->key = cfqd;
- atomic_inc(&cfqd->ref);
list_add(&__cic->list, &cic->list);
cic = __cic;
}