]> git.baikalelectronics.ru Git - kernel.git/commit
net/sock: Update memalloc_socks static key to modern api
authorDavidlohr Bueso <dave@stgolabs.net>
Tue, 8 May 2018 16:06:59 +0000 (09:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 May 2018 19:13:34 +0000 (15:13 -0400)
commit51a8144831c1b2aa7567dfbaf3e81111929a82cc
treee3863a021b600eba3db0b21e115bea47258b3e0a
parentdc15ada50ec6741143e98282dc3b52b086fd1149
net/sock: Update memalloc_socks static key to modern api

No changes in refcount semantics -- key init is false; replace

static_key_slow_inc|dec   with   static_branch_inc|dec
static_key_false          with   static_branch_unlikely

Added a '_key' suffix to memalloc_socks, for better self
documentation.

Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sock.h
net/core/sock.c