Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1381297
| From | Davidlohr Bueso <dave@stgolabs.net> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH -tip 2/3] locking/pvqspinlock: Avoid double resetting of stats |
| Date | 2016-04-18 08:40 +0200 |
| Message-ID | <rpb0L-WR-37@gated-at.bofh.it> (permalink) |
| References | <rpb0J-WR-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
... remove the redundant second iteration, this is most likely a copy/past buglet. Signed-off-by: Davidlohr Bueso <dbueso@suse.de> --- 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 d734b7502001..72722334237a 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; } -- 2.8.1
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH -tip 1/3] locking/pvqspinlock: Fix div by 0 in qstats Davidlohr Bueso <dave@stgolabs.net> - 2016-04-18 08:40 +0200
[PATCH -tip 3/3] locking/pvqspinlock: Robustify init_qspinlock_stat() Davidlohr Bueso <dave@stgolabs.net> - 2016-04-18 08:40 +0200
Re: [PATCH -tip 3/3] locking/pvqspinlock: Robustify init_qspinlock_stat() Davidlohr Bueso <dave@stgolabs.net> - 2016-04-18 18:20 +0200
[PATCH -tip v3 3/3] locking/pvqspinlock: Robustify init_qspinlock_stat() Davidlohr Bueso <dave@stgolabs.net> - 2016-04-20 06:20 +0200
Re: [PATCH -tip v3 3/3] locking/pvqspinlock: Robustify init_qspinlock_stat() Waiman Long <waiman.long@hpe.com> - 2016-04-20 22:10 +0200
Re: [PATCH -tip v2] locking/pvqspinlock: Robustify init_qspinlock_stat() Davidlohr Bueso <dave@stgolabs.net> - 2016-04-20 06:20 +0200
[PATCH -tip v2] locking/pvqspinlock: Robustify init_qspinlock_stat() Davidlohr Bueso <dave@stgolabs.net> - 2016-04-20 06:20 +0200
Re: [PATCH -tip 3/3] locking/pvqspinlock: Robustify init_qspinlock_stat() Waiman Long <waiman.long@hpe.com> - 2016-04-18 21:50 +0200
[PATCH -tip 2/3] locking/pvqspinlock: Avoid double resetting of stats Davidlohr Bueso <dave@stgolabs.net> - 2016-04-18 08:40 +0200
Re: [PATCH -tip 2/3] locking/pvqspinlock: Avoid double resetting of stats Waiman Long <waiman.long@hpe.com> - 2016-04-18 22:20 +0200
Re: [PATCH -tip 1/3] locking/pvqspinlock: Fix div by 0 in qstats Waiman Long <waiman.long@hpe.com> - 2016-04-18 21:40 +0200
[tip:locking/urgent] locking/pvqspinlock: Fix division by zero in qstat_read() tip-bot for Davidlohr Bueso <tipbot@zytor.com> - 2016-04-19 11:40 +0200
csiph-web