]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
proc: don't use READ_ONCE/WRITE_ONCE for /proc/*/fail-nth
authorAlexey Dobriyan <adobriyan@gmail.com>
Tue, 6 Feb 2018 23:36:55 +0000 (15:36 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 7 Feb 2018 02:32:43 +0000 (18:32 -0800)
commit9f7118b2007d5e7c7a061550d2ca2ecb841537dc
tree108cc9bf9789d08ff47191a47f18cacaae8ab4c3
parente3912ac37e07a13c70675cd75020694de4841c74
proc: don't use READ_ONCE/WRITE_ONCE for /proc/*/fail-nth

READ_ONCE and WRITE_ONCE are useless when there is only one read/write
is being made.

Link: http://lkml.kernel.org/r/20171120204033.GA9446@avx2
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/base.c