mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
io_uring: move LuringState typedef to block/aio.h
The LuringState typedef is defined twice, in include/block/raw-aio.h and block/io_uring.c. Move it in include/block/aio.h, which is included everywhere the typedef is needed, since include/block/aio.h already has to define the forward reference to the struct. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
aef158b093
commit
3cbc17ee92
3 changed files with 6 additions and 7 deletions
|
@ -49,7 +49,7 @@ typedef struct LuringQueue {
|
|||
QSIMPLEQ_HEAD(, LuringAIOCB) submit_queue;
|
||||
} LuringQueue;
|
||||
|
||||
typedef struct LuringState {
|
||||
struct LuringState {
|
||||
AioContext *aio_context;
|
||||
|
||||
struct io_uring ring;
|
||||
|
@ -58,7 +58,7 @@ typedef struct LuringState {
|
|||
LuringQueue io_q;
|
||||
|
||||
QEMUBH *completion_bh;
|
||||
} LuringState;
|
||||
};
|
||||
|
||||
/**
|
||||
* luring_resubmit:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue