From eee3bef790f918f67249e5f939acbdd4e39d8af9 Mon Sep 17 00:00:00 2001 From: Joseph Schuchart Date: Fri, 18 Oct 2024 09:17:16 -0400 Subject: [PATCH] w2r task should unlock the lock if readers are not 0 Signed-off-by: Joseph Schuchart --- parsec/mca/device/transfer_gpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parsec/mca/device/transfer_gpu.c b/parsec/mca/device/transfer_gpu.c index d46c8ab96..986cda05e 100644 --- a/parsec/mca/device/transfer_gpu.c +++ b/parsec/mca/device/transfer_gpu.c @@ -263,7 +263,7 @@ parsec_gpu_create_w2r_task(parsec_device_gpu_module_t *gpu_device, if (MAX_PARAM_COUNT == nb_cleaned) break; } else { - parsec_atomic_lock( &gpu_copy->original->lock ); + parsec_atomic_unlock( &gpu_copy->original->lock ); } }