From df281b80b9ecba65d85795aa738c29e5b94d5ef1 Mon Sep 17 00:00:00 2001 From: Pavel Dovgalyuk Date: Thu, 17 Sep 2015 19:24:50 +0300 Subject: bottom halves: introduce bh call function This patch introduces aio_bh_call function. It is used to execute bottom halves as callbacks without adding them to the queue. Signed-off-by: Pavel Dovgalyuk Message-Id: <20150917162450.8676.56980.stgit@PASHA-ISP.def.inno> Signed-off-by: Paolo Bonzini Signed-off-by: Pavel Dovgalyuk --- include/block/aio.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/block/aio.h b/include/block/aio.h index bcc7d43f6a..92efc5e1f1 100644 --- a/include/block/aio.h +++ b/include/block/aio.h @@ -208,6 +208,11 @@ void aio_notify(AioContext *ctx); */ void aio_notify_accept(AioContext *ctx); +/** + * aio_bh_call: Executes callback function of the specified BH. + */ +void aio_bh_call(QEMUBH *bh); + /** * aio_bh_poll: Poll bottom halves for an AioContext. * -- cgit v1.2.3