svn commit: r349611 - head/sys/kern
Konstantin Belousov
kib at FreeBSD.org
Tue Jul 2 19:32:49 UTC 2019
Author: kib
Date: Tue Jul 2 19:32:48 2019
New Revision: 349611
URL: https://svnweb.freebsd.org/changeset/base/349611
Log:
Style.
Sponsored by: The FreeBSD Foundation
MFC after: 3 days
Modified:
head/sys/kern/kern_umtx.c
Modified: head/sys/kern/kern_umtx.c
==============================================================================
--- head/sys/kern/kern_umtx.c Tue Jul 2 19:12:02 2019 (r349610)
+++ head/sys/kern/kern_umtx.c Tue Jul 2 19:32:48 2019 (r349611)
@@ -2893,7 +2893,8 @@ do_rw_wrlock(struct thread *td, struct urwlock *rwlock
break;
}
- if (!(state & URWLOCK_WRITE_OWNER) && URWLOCK_READER_COUNT(state) == 0) {
+ if ((state & URWLOCK_WRITE_OWNER) == 0 &&
+ URWLOCK_READER_COUNT(state) == 0) {
umtxq_unbusy_unlocked(&uq->uq_key);
error = umtxq_check_susp(td);
if (error != 0)
@@ -2908,9 +2909,10 @@ sleep:
error = EFAULT;
break;
}
- suword32(&rwlock->rw_blocked_writers, blocked_writers+1);
+ suword32(&rwlock->rw_blocked_writers, blocked_writers + 1);
- while ((state & URWLOCK_WRITE_OWNER) || URWLOCK_READER_COUNT(state) != 0) {
+ while ((state & URWLOCK_WRITE_OWNER) ||
+ URWLOCK_READER_COUNT(state) != 0) {
umtxq_lock(&uq->uq_key);
umtxq_insert_queue(uq, UMTX_EXCLUSIVE_QUEUE);
umtxq_unbusy(&uq->uq_key);
More information about the svn-src-head
mailing list