Changes in kernel/generic/src/synch/rcu.c [63e27ef:b7fd2a0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/synch/rcu.c
r63e27ef rb7fd2a0 957 957 958 958 /* Wait for the GP to complete. */ 959 int ret = _condvar_wait_timeout_spinlock(&rcu.gp_ended, &rcu.gp_lock,959 errno_t ret = _condvar_wait_timeout_spinlock(&rcu.gp_ended, &rcu.gp_lock, 960 960 SYNCH_NO_TIMEOUT, SYNCH_FLAGS_INTERRUPTIBLE); 961 961 962 if (ret == E SYNCH_INTERRUPTED) {962 if (ret == EINTR) { 963 963 spinlock_unlock(&rcu.gp_lock); 964 964 return false; … … 1013 1013 spinlock_lock(&rcu.gp_lock); 1014 1014 1015 int ret = 0;1015 errno_t ret = 0; 1016 1016 ret = _condvar_wait_timeout_spinlock(&rcu.expedite_now, &rcu.gp_lock, 1017 1017 DETECT_SLEEP_MS * 1000, SYNCH_FLAGS_INTERRUPTIBLE); 1018 1018 1019 1019 /* rcu.expedite_now was signaled. */ 1020 if (ret == E SYNCH_OK_BLOCKED) {1020 if (ret == EOK) { 1021 1021 *expedite = true; 1022 1022 } … … 1024 1024 spinlock_unlock(&rcu.gp_lock); 1025 1025 1026 return (ret != E SYNCH_INTERRUPTED);1026 return (ret != EINTR); 1027 1027 } 1028 1028 } … … 1271 1271 int ret = _condvar_wait_timeout_spinlock(&rcu.gp_ended, &rcu.gp_lock, 1272 1272 SYNCH_NO_TIMEOUT, SYNCH_FLAGS_INTERRUPTIBLE); 1273 interrupted = (ret == E SYNCH_INTERRUPTED);1273 interrupted = (ret == EINTR); 1274 1274 } 1275 1275 … … 1332 1332 &rcu.gp_lock, SYNCH_NO_TIMEOUT, SYNCH_FLAGS_INTERRUPTIBLE); 1333 1333 1334 interrupted = (ret == E SYNCH_INTERRUPTED);1334 interrupted = (ret == EINTR); 1335 1335 } 1336 1336 … … 1406 1406 spinlock_unlock(&rcu.gp_lock); 1407 1407 1408 return (ret != E SYNCH_INTERRUPTED);1408 return (ret != EINTR); 1409 1409 } 1410 1410
Note:
See TracChangeset
for help on using the changeset viewer.