disk_replace_part_tbl — replace disk->part_tbl in RCU-safe way
voiddisk_replace_part_tbl(
)
struct gendisk * disk
disk to replace part_tbl for
struct disk_part_tbl * new_ptbl
new part_tbl to install
Replace disk->part_tbl withnew_ptbl in RCU-safe way. The original ptbl is freed using RCU callback.
new_ptbl
LOCKING: Matching bd_mutx locked.