diff options
author | Emanuele Giuseppe Esposito <eesposit@redhat.com> | 2022-03-03 10:15:50 -0500 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2022-03-04 18:18:25 +0100 |
commit | 384a48fb7423dfb303023eb504e1fc5e6acb4de4 (patch) | |
tree | a7f9e95f94e2e4c1d9fd0b1ac73a9b855295c87b /include | |
parent | f791bf7f93f25f771b4423faa2694b514c5d26c7 (diff) |
IO_CODE and IO_OR_GS_CODE for block I/O API
Mark all I/O functions with IO_CODE, and all "I/O OR GS" with
IO_OR_GS_CODE.
Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
Message-Id: <20220303151616.325444-6-eesposit@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/block/block-io.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/block/block-io.h b/include/block/block-io.h index 2cbdfb92c9..5e3f346806 100644 --- a/include/block/block-io.h +++ b/include/block/block-io.h @@ -264,6 +264,7 @@ void bdrv_drained_end_no_poll(BlockDriverState *bs, int *drained_end_counter); #define BDRV_POLL_WHILE(bs, cond) ({ \ BlockDriverState *bs_ = (bs); \ + IO_OR_GS_CODE(); \ AIO_WAIT_WHILE(bdrv_get_aio_context(bs_), \ cond); }) |