Skip to content

Commit dc209a3

Browse files
Davidlohr Buesoingomolnar
authored andcommitted
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>
1 parent e8c8ce5 commit dc209a3

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎kernel/locking/qspinlock_stat.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,6 @@ static ssize_t qstat_write(struct file *file, const char __user *user_buf,
191191

192192
for (i = 0 ; i < qstat_num; i++)
193193
WRITE_ONCE(ptr[i], 0);
194-
for (i = 0 ; i < qstat_num; i++)
195-
WRITE_ONCE(ptr[i], 0);
196194
}
197195
return count;
198196
}

0 commit comments

Comments
 (0)