]> git.baikalelectronics.ru Git - kernel.git/commit
random: use lockless method of accessing and updating f->reg_idx
authorTheodore Ts'o <tytso@mit.edu>
Wed, 7 Jun 2017 23:01:32 +0000 (19:01 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 7 Jun 2017 23:01:32 +0000 (19:01 -0400)
commit2a6bd9f19f30a6a93b6572ac60b8a52509b3ebeb
treeb06b973a94111993fa11672556d0e0c9d1bd134d
parentad194670ba536732289d1d07bcb5bca283c5e139
random: use lockless method of accessing and updating f->reg_idx

Linus pointed out that there is a much more efficient way of avoiding
the problem that we were trying to address in commit ad194670ba536:
"fix race in drivers/char/random.c:get_reg()".

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
drivers/char/random.c