Skip to content
This repository was archived by the owner on Sep 30, 2022. It is now read-only.

Commit a3b4735

Browse files
author
rhc54
committed
Merge pull request #1008 from hjelmn/32bit_fixes
osc/pt2pt: do no use OPAL_THREAD_ADD64 for lock serial number
2 parents 61f265a + f8c72a1 commit a3b4735

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ompi/mca/osc/pt2pt/osc_pt2pt_passive_target.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* University of Stuttgart. All rights reserved.
99
* Copyright (c) 2004-2005 The Regents of the University of California.
1010
* All rights reserved.
11-
* Copyright (c) 2007-2015 Los Alamos National Security, LLC. All rights
11+
* Copyright (c) 2007-2016 Los Alamos National Security, LLC. All rights
1212
* reserved.
1313
* Copyright (c) 2010 IBM Corporation. All rights reserved.
1414
* Copyright (c) 2012-2013 Sandia National Laboratories. All rights reserved.
@@ -331,13 +331,14 @@ static int ompi_osc_pt2pt_lock_internal (int lock_type, int target, int assert,
331331
lock->target = target;
332332
lock->lock_acks_expected = 0;
333333
lock->unlock_acks_expected = 0;
334-
lock->serial_number = OPAL_THREAD_ADD64((int64_t *) &module->lock_serial_number, 1);
335334
lock->type = lock_type;
336335
lock->assert = assert;
337336

338337
/* delay all eager sends until we've heard back.. */
339338
OPAL_THREAD_LOCK(&module->lock);
340339

340+
lock->serial_number = module->lock_serial_number + 1;
341+
341342
/* check for conflicting lock */
342343
if (find_outstanding_lock_st (module, target)) {
343344
OBJ_RELEASE(lock);

0 commit comments

Comments
 (0)