aboutsummaryrefslogtreecommitdiff
path: root/include/block/export.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/block/export.h')
-rw-r--r--include/block/export.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/block/export.h b/include/block/export.h
index cdc6e161ea..4833947e89 100644
--- a/include/block/export.h
+++ b/include/block/export.h
@@ -60,6 +60,14 @@ struct BlockExport {
*/
int refcount;
+ /*
+ * True if one of the references in refcount belongs to the user. After the
+ * user has dropped their reference, they may not e.g. remove the same
+ * export a second time (which would decrease the refcount without having
+ * it incremented first).
+ */
+ bool user_owned;
+
/* The AioContext whose lock protects this BlockExport object. */
AioContext *ctx;