vfio/mdev: Synchronize device create/remove with parent removal
[sfrench/cifs-2.6.git] / drivers / vfio / mdev / mdev_private.h
index 924ed2274941e0a9507774f54f12f928f3d2b55f..39876752627679149180e19492893a24109f5597 100644 (file)
@@ -23,6 +23,8 @@ struct mdev_parent {
        struct list_head next;
        struct kset *mdev_types_kset;
        struct list_head type_list;
+       /* Synchronize device creation/removal with parent unregistration */
+       struct rw_semaphore unreg_sem;
 };
 
 struct mdev_device {