proc: don't use READ_ONCE/WRITE_ONCE for /proc/*/fail-nth
authorAlexey Dobriyan <[email protected]>
Tue, 6 Feb 2018 23:36:55 +0000 (15:36 -0800)
committerLinus Torvalds <[email protected]>
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 <[email protected]>
Cc: Akinobu Mita <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/proc/base.c