diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2014-06-04 14:19:48 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2014-06-05 04:39:36 -0400 |
commit | 0cc3d01164aba483edd8232aa5c781136843c367 (patch) | |
tree | 21984640873d875c571e3b6cecb8a22354b77ff9 /kernel/locking | |
parent | dbb5eafa23fdb7a00d64b04e23a3efc59d6474cb (diff) |
locking/rwsem: Fix checkpatch.pl warnings
WARNING: line over 80 characters
#205: FILE: kernel/locking/rwsem-xadd.c:275:
+ old = cmpxchg(&sem->count, count, count + RWSEM_ACTIVE_WRITE_BIAS);
WARNING: line over 80 characters
#376: FILE: kernel/locking/rwsem-xadd.c:434:
+ * If there were already threads queued before us and there are no
WARNING: line over 80 characters
#377: FILE: kernel/locking/rwsem-xadd.c:435:
+ * active writers, the lock must be read owned; so we try to wake
total: 0 errors, 3 warnings, 417 lines checked
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Davidlohr Bueso <davidlohr@hp.com>
Cc: Tim Chen <tim.c.chen@linux.intel.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/n/tip-pn6pslaplw031lykweojsn8c@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/locking')
-rw-r--r-- | kernel/locking/rwsem-xadd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/locking/rwsem-xadd.c b/kernel/locking/rwsem-xadd.c index 4a75278142cd..dacc32142fcc 100644 --- a/kernel/locking/rwsem-xadd.c +++ b/kernel/locking/rwsem-xadd.c | |||
@@ -433,9 +433,9 @@ struct rw_semaphore __sched *rwsem_down_write_failed(struct rw_semaphore *sem) | |||
433 | count = ACCESS_ONCE(sem->count); | 433 | count = ACCESS_ONCE(sem->count); |
434 | 434 | ||
435 | /* | 435 | /* |
436 | * If there were already threads queued before us and there are no | 436 | * If there were already threads queued before us and there are |
437 | * active writers, the lock must be read owned; so we try to wake | 437 | * no active writers, the lock must be read owned; so we try to |
438 | * any read locks that were queued ahead of us. | 438 | * wake any read locks that were queued ahead of us. |
439 | */ | 439 | */ |
440 | if (count > RWSEM_WAITING_BIAS) | 440 | if (count > RWSEM_WAITING_BIAS) |
441 | sem = __rwsem_do_wake(sem, RWSEM_WAKE_READERS); | 441 | sem = __rwsem_do_wake(sem, RWSEM_WAKE_READERS); |