]> git.baikalelectronics.ru Git - kernel.git/commit
selinux: drop unnecessary smp_load_acquire() call
authorOndrej Mosnacek <omosnace@redhat.com>
Wed, 8 Apr 2020 09:08:08 +0000 (11:08 +0200)
committerPaul Moore <paul@paul-moore.com>
Wed, 15 Apr 2020 22:27:35 +0000 (18:27 -0400)
commita4c69982c352eb7bf8e09effc577b547324bdbf8
tree6dcbfa93ad447e42029cce5dba887148a1994dd3
parent7a255e23616650dd10b0473f7a21e6659efa5d7d
selinux: drop unnecessary smp_load_acquire() call

In commit bdc963d0df54 ("selinux: sidtab reverse lookup hash table") the
corresponding load is moved under the spin lock, so there is no race
possible and we can read the count directly. The smp_store_release() is
still needed to avoid racing with the lock-free readers.

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/ss/sidtab.c