Home
last modified time | relevance | path

Searched refs:srcu_idx (Results 1 – 2 of 2) sorted by relevance

/drivers/md/
Ddm-ioctl.c256 int srcu_idx; in __hash_remove() local
265 table = dm_get_live_table(hc->md, &srcu_idx); in __hash_remove()
268 dm_put_live_table(hc->md, srcu_idx); in __hash_remove()
376 int srcu_idx; in dm_hash_rename() local
439 table = dm_get_live_table(hc->md, &srcu_idx); in dm_hash_rename()
442 dm_put_live_table(hc->md, srcu_idx); in dm_hash_rename()
645 static struct dm_table *dm_get_inactive_table(struct mapped_device *md, int *srcu_idx) in dm_get_inactive_table() argument
651 dm_get_live_table(md, srcu_idx); in dm_get_inactive_table()
670 int *srcu_idx) in dm_get_live_or_inactive_table() argument
673 dm_get_inactive_table(md, srcu_idx) : dm_get_live_table(md, srcu_idx); in dm_get_live_or_inactive_table()
[all …]
Ddm.c561 fmode_t *mode, int *srcu_idx) in dm_get_live_table_for_ioctl() argument
568 map = dm_get_live_table(md, srcu_idx); in dm_get_live_table_for_ioctl()
593 dm_put_live_table(md, *srcu_idx); in dm_get_live_table_for_ioctl()
607 int srcu_idx, r; in dm_blk_ioctl() local
609 r = dm_get_live_table_for_ioctl(md, &tgt, &tgt_bdev, &mode, &srcu_idx); in dm_blk_ioctl()
626 dm_put_live_table(md, srcu_idx); in dm_blk_ioctl()
738 struct dm_table *dm_get_live_table(struct mapped_device *md, int *srcu_idx) __acquires(md->io_barri… in dm_get_live_table() argument
740 *srcu_idx = srcu_read_lock(&md->io_barrier); in dm_get_live_table()
745 void dm_put_live_table(struct mapped_device *md, int srcu_idx) __releases(md->io_barrier) in dm_put_live_table() argument
747 srcu_read_unlock(&md->io_barrier, srcu_idx); in dm_put_live_table()
[all …]