Skip to contentSkip to conversation

block/nfs: do not use qatomic_mb_set

PATCH In review Paolo Bonzini 2 participants 2 messages Apr 6, 2023 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 block/nfs: do not use qatomic_mb_set

---
 block/nfs.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
block/nfs.c +2 -2
index 351dc6ec8d14..0ee63f44deb0 100644
@@ -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);
 }
 
Signature · 1 line
2.39.2