commit | dcc772e2f2b7c2a68644133fea2b874f6751a57b | [log] [tgz] |
---|---|---|
author | Liu Ping Fan <qemulist@gmail.com> | Tue Jul 16 12:28:58 2013 +0800 |
committer | Stefan Hajnoczi <stefanha@redhat.com> | Fri Jul 19 12:29:21 2013 +0800 |
tree | 4082fc020fff1669f1e81a70fe27921e6b393e55 | |
parent | 9154b02c53bb6685797c973fcdbec51c4714777d [diff] |
QEMUBH: make AioContext's bh re-entrant BH will be used outside big lock, so introduce lock to protect between the writers, ie, bh's adders and deleter. The lock only affects the writers and bh's callback does not take this extra lock. Note that for the same AioContext, aio_bh_poll() can not run in parallel yet. Signed-off-by: Liu Ping Fan <pingfank@linux.vnet.ibm.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>