[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH for-8.1] block/nfs: do not use qatomic_mb_set
From: |
Paolo Bonzini |
Subject: |
[PATCH for-8.1] block/nfs: do not use qatomic_mb_set |
Date: |
Thu, 6 Apr 2023 12:08:30 +0200 |
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
block/nfs.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/block/nfs.c b/block/nfs.c
index 351dc6ec8d14..0ee63f44deb0 100644
--- a/block/nfs.c
+++ b/block/nfs.c
@@ -727,8 +727,8 @@ nfs_get_allocated_file_size_cb(int ret, struct nfs_context
*nfs, void *data,
error_report("NFS Error: %s", nfs_get_error(nfs));
}
- /* Set task->complete before reading bs->wakeup. */
- qatomic_mb_set(&task->complete, 1);
+ /* Memory barrier already included in bdrv_wakeup(), via aio_wait_kick().
*/
+ qatomic_set(&task->complete, 1);
bdrv_wakeup(task->bs);
}
--
2.39.2
- [PATCH for-8.1] block/nfs: do not use qatomic_mb_set,
Paolo Bonzini <=