diff options
author | Kevin Wolf <kwolf@redhat.com> | 2019-05-06 19:18:04 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2019-05-20 17:08:56 +0200 |
commit | 657e1203203ccb48cb041ecb3f1799bec8349744 (patch) | |
tree | 4bf522411fbbc8908b83eef0fc621b65396b1df7 /linux-user | |
parent | 9ff7f0df8757c1c6ca582935c27db377a1eaeb22 (diff) | |
download | qemu-657e1203203ccb48cb041ecb3f1799bec8349744.zip qemu-657e1203203ccb48cb041ecb3f1799bec8349744.tar.gz qemu-657e1203203ccb48cb041ecb3f1799bec8349744.tar.bz2 |
blockjob: Remove AioContext notifiers
The notifiers made sure that the job is quiesced and that the
job->aio_context field is updated. The first part is unnecessary today
since bdrv_set_aio_context_ignore() drains the block node, and this
means drainig the block job, too. The second part can be done in the
.set_aio_ctx callback of the block job BdrvChildRole.
The notifiers were problematic because they poll the AioContext while
the graph is in an inconsistent state with some nodes already in the new
context, but others still in the old context. So removing the notifiers
not only simplifies the code, but actually makes the code safer.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'linux-user')
0 files changed, 0 insertions, 0 deletions