Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1394994 > unrolled thread
| Started by | tip-bot for Davidlohr Bueso <tipbot@zytor.com> |
|---|---|
| First post | 2016-05-05 11:50 +0200 |
| Last post | 2016-05-05 11:50 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[tip:locking/core] locking/pvqspinlock: Avoid double resetting of stats tip-bot for Davidlohr Bueso <tipbot@zytor.com> - 2016-05-05 11:50 +0200
| From | tip-bot for Davidlohr Bueso <tipbot@zytor.com> |
|---|---|
| Date | 2016-05-05 11:50 +0200 |
| Subject | [tip:locking/core] locking/pvqspinlock: Avoid double resetting of stats |
| Message-ID | <rvo4X-5Xt-31@gated-at.bofh.it> |
Commit-ID: dc209a3fd73ec96d4491bcc128c3b50b0a8e8017 Gitweb: http://git.kernel.org/tip/dc209a3fd73ec96d4491bcc128c3b50b0a8e8017 Author: Davidlohr Bueso <dave@stgolabs.net> AuthorDate: Sun, 17 Apr 2016 23:31:42 -0700 Committer: Ingo Molnar <mingo@kernel.org> CommitDate: Thu, 5 May 2016 09:58:49 +0200 locking/pvqspinlock: Avoid double resetting of stats ... remove the redundant second iteration, this is most likely a copy/past buglet. Signed-off-by: Davidlohr Bueso <dbueso@suse.de> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: dave@stgolabs.net Cc: waiman.long@hpe.com Link: http://lkml.kernel.org/r/1460961103-24953-2-git-send-email-dave@stgolabs.net Signed-off-by: Ingo Molnar <mingo@kernel.org> --- kernel/locking/qspinlock_stat.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/kernel/locking/qspinlock_stat.h b/kernel/locking/qspinlock_stat.h index d734b75..7272233 100644 --- a/kernel/locking/qspinlock_stat.h +++ b/kernel/locking/qspinlock_stat.h @@ -191,8 +191,6 @@ static ssize_t qstat_write(struct file *file, const char __user *user_buf, for (i = 0 ; i < qstat_num; i++) WRITE_ONCE(ptr[i], 0); - for (i = 0 ; i < qstat_num; i++) - WRITE_ONCE(ptr[i], 0); } return count; }
Back to top | Article view | linux.kernel
csiph-web