]> git.sesse.net Git - bcachefs-tools-debian/commit
Change preempt_disable() etc. to use a recursive mutex.
authorJustin Husted <sigstop@gmail.com>
Thu, 10 Oct 2019 02:27:22 +0000 (19:27 -0700)
committerKent Overstreet <kent.overstreet@gmail.com>
Mon, 4 Nov 2019 04:17:43 +0000 (23:17 -0500)
commitff4d082246ed542c28c90f3f30b9b964d67591d3
tree91a75840009e6d99ee52b21f8170492b8641ffe6
parent2bc11669193e6d7aa140298e5853758dfddbd2a7
Change preempt_disable() etc. to use a recursive mutex.

This is part of the userspace implementation of the kernel APIs for
bcachefs-tools. The previous implementation just provided a barrier, but
this isn't sufficient to make the associated percpu implementation safe.

Signed-off-by: Justin Husted <sigstop@gmail.com>
include/linux/preempt.h
linux/preempt.c [new file with mode: 0644]