]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - block/blk-cgroup.c
block: Substitute rcu_access_pointer() for rcu_dereference_raw()
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 17 Feb 2014 21:35:57 +0000 (13:35 -0800)
committerJens Axboe <axboe@fb.com>
Tue, 18 Feb 2014 20:21:26 +0000 (12:21 -0800)
commitec6c676a08b0779a32c9cec9fae7532add32fe15
treee76b0548ed7bc4a2927aa3bc4e3bec2bc8adf7da
parente3ebf0d457039c857dfeb45434e3be9780dea499
block: Substitute rcu_access_pointer() for rcu_dereference_raw()

(Trivial patch.)

If the code is looking at the RCU-protected pointer itself, but not
dereferencing it, the rcu_dereference() functions can be downgraded to
rcu_access_pointer().  This commit makes this downgrade in blkg_destroy()
and ioc_destroy_icq(), both of which simply compare the RCU-protected
pointer against another pointer with no dereferencing.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-cgroup.c
block/blk-ioc.c