Lines Matching refs:regions
29 struct prison_region regions[]; member
47 prison = kzalloc(struct_size(prison, regions, num_locks), GFP_KERNEL); in dm_bio_prison_create()
53 spin_lock_init(&prison->regions[i].lock); in dm_bio_prison_create()
54 prison->regions[i].cell = RB_ROOT; in dm_bio_prison_create()
184 spin_lock_irq(&prison->regions[l].lock); in bio_detain()
185 r = __bio_detain(&prison->regions[l].cell, key, inmate, cell_prealloc, cell_result); in bio_detain()
186 spin_unlock_irq(&prison->regions[l].lock); in bio_detain()
232 spin_lock_irq(&prison->regions[l].lock); in dm_cell_release()
233 __cell_release(&prison->regions[l].cell, cell, bios); in dm_cell_release()
234 spin_unlock_irq(&prison->regions[l].lock); in dm_cell_release()
256 spin_lock_irqsave(&prison->regions[l].lock, flags); in dm_cell_release_no_holder()
257 __cell_release_no_holder(&prison->regions[l].cell, cell, inmates); in dm_cell_release_no_holder()
258 spin_unlock_irqrestore(&prison->regions[l].lock, flags); in dm_cell_release_no_holder()
284 spin_lock_irq(&prison->regions[l].lock); in dm_cell_visit_release()
286 rb_erase(&cell->node, &prison->regions[l].cell); in dm_cell_visit_release()
287 spin_unlock_irq(&prison->regions[l].lock); in dm_cell_visit_release()
309 spin_lock_irq(&prison->regions[l].lock); in dm_cell_promote_or_release()
310 r = __promote_or_release(&prison->regions[l].cell, cell); in dm_cell_promote_or_release()
311 spin_unlock_irq(&prison->regions[l].lock); in dm_cell_promote_or_release()