blockdev: add note that block_job_cb() must be thread-safe
commit723c5d93c51bdb3adbc238ce90195c0864aa6cd5
authorStefan Hajnoczi <stefanha@redhat.com>
Tue, 21 Oct 2014 11:03:53 +0000 (21 12:03 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 3 Nov 2014 11:41:49 +0000 (3 11:41 +0000)
treed4be37f9e341157b71b01982048f2ac8a49b27a8
parent91fddb0db6fee207ccdcca22dd996cf0154a1004
blockdev: add note that block_job_cb() must be thread-safe

This function is correct but we should document the constraint that
everything must be thread-safe.

Emitting QMP events and scheduling BHs are both thread-safe so nothing
needs to be done here.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-id: 1413889440-32577-5-git-send-email-stefanha@redhat.com
blockdev.c