Lines Matching defs:iocq
57 static struct iocq_ktio *iocq;
1179 /* Enters with iocq.lock held.
1193 if (list_empty(&iocq[id].head))
1195 pos = iocq[id].head.next;
1198 spin_unlock_irq(&iocq[id].lock);
1212 spin_lock_irq(&iocq[id].lock);
1276 spin_lock_irqsave(&iocq[id].lock, flags);
1278 spin_unlock_irqrestore(&iocq[id].lock, flags);
1284 spin_lock_irqsave(&iocq[id].lock, flags);
1286 list_add_tail(&f->head, &iocq[id].head);
1287 spin_unlock_irqrestore(&iocq[id].lock, flags);
1651 spin_lock_irqsave(&iocq[id].lock, flags);
1652 list_splice_init(&iocq[id].head, &flist);
1653 spin_unlock_irqrestore(&iocq[id].lock, flags);
1687 iocq = kcalloc(ncpus, sizeof(struct iocq_ktio), GFP_KERNEL);
1688 if (!iocq)
1704 INIT_LIST_HEAD(&iocq[i].head);
1705 spin_lock_init(&iocq[i].lock);
1710 kts[i].lock = &iocq[i].lock;
1726 kfree(iocq);
1742 /* Free up the iocq and thread speicific configuration
1745 kfree(iocq);