[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 24/26] 9p: add missing coroutine_fn annotations
From: |
Paolo Bonzini |
Subject: |
[PATCH v2 24/26] 9p: add missing coroutine_fn annotations |
Date: |
Mon, 9 May 2022 12:30:17 +0200 |
From: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Acked-by: Greg Kurz <groug@kaod.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
hw/9pfs/9p.h | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/hw/9pfs/9p.h b/hw/9pfs/9p.h
index 994f952600..a523ac34a9 100644
--- a/hw/9pfs/9p.h
+++ b/hw/9pfs/9p.h
@@ -424,21 +424,24 @@ typedef struct V9fsGetlock
extern int open_fd_hw;
extern int total_open_fd;
-static inline void v9fs_path_write_lock(V9fsState *s)
+static inline void coroutine_fn
+v9fs_path_write_lock(V9fsState *s)
{
if (s->ctx.export_flags & V9FS_PATHNAME_FSCONTEXT) {
qemu_co_rwlock_wrlock(&s->rename_lock);
}
}
-static inline void v9fs_path_read_lock(V9fsState *s)
+static inline void coroutine_fn
+v9fs_path_read_lock(V9fsState *s)
{
if (s->ctx.export_flags & V9FS_PATHNAME_FSCONTEXT) {
qemu_co_rwlock_rdlock(&s->rename_lock);
}
}
-static inline void v9fs_path_unlock(V9fsState *s)
+static inline void coroutine_fn
+v9fs_path_unlock(V9fsState *s)
{
if (s->ctx.export_flags & V9FS_PATHNAME_FSCONTEXT) {
qemu_co_rwlock_unlock(&s->rename_lock);
--
2.35.1
- [PATCH v2 13/26] parallels: add missing coroutine_fn annotations, (continued)
- [PATCH v2 13/26] parallels: add missing coroutine_fn annotations, Paolo Bonzini, 2022/05/09
- [PATCH v2 14/26] qcow2: add missing coroutine_fn annotations, Paolo Bonzini, 2022/05/09
- [PATCH v2 15/26] copy-before-write: add missing coroutine_fn annotations, Paolo Bonzini, 2022/05/09
- [PATCH v2 17/26] qed: add missing coroutine_fn annotations, Paolo Bonzini, 2022/05/09
- [PATCH v2 18/26] quorum: add missing coroutine_fn annotations, Paolo Bonzini, 2022/05/09
- [PATCH v2 23/26] raw-format: add missing coroutine_fn annotations, Paolo Bonzini, 2022/05/09
- [PATCH v2 16/26] curl: add missing coroutine_fn annotations, Paolo Bonzini, 2022/05/09
- [PATCH v2 21/26] job: add missing coroutine_fn annotations, Paolo Bonzini, 2022/05/09
- [PATCH v2 26/26] test-coroutine: add missing coroutine_fn annotations, Paolo Bonzini, 2022/05/09
- [PATCH v2 25/26] migration: add missing coroutine_fn annotations, Paolo Bonzini, 2022/05/09
- [PATCH v2 24/26] 9p: add missing coroutine_fn annotations,
Paolo Bonzini <=
- [PATCH v2 19/26] throttle: add missing coroutine_fn annotations, Paolo Bonzini, 2022/05/09
- [PATCH v2 20/26] vmdk: add missing coroutine_fn annotations, Paolo Bonzini, 2022/05/09
- [PATCH v2 22/26] coroutine-lock: add missing coroutine_fn annotations, Paolo Bonzini, 2022/05/09
- Re: [PATCH v2 00/26] block: fix coroutine_fn annotations, Daniel P . Berrangé, 2022/05/09