rcuwait: Introduce rcuwait_active()
authorDavidlohr Bueso <dave@stgolabs.net>
Fri, 24 Apr 2020 05:48:36 +0000 (22:48 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 13 May 2020 16:14:54 +0000 (12:14 -0400)
commit191a43be61d6791fd4a9098a35c1a09e73f55228
tree6c66c7930e5312879078bb39d11e4485e233c29d
parent5c21f7b322cb9fcb97f2e22f5976a0ae8dd71354
rcuwait: Introduce rcuwait_active()

This call is lockless and thus should not be trusted blindly.
For example, the return value of rcuwait_wakeup() should be used to
track whether a process was woken up.

Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Message-Id: <20200424054837.5138-5-dave@stgolabs.net>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/linux/rcuwait.h