diff options
author | Vladimir Sementsov-Ogievskiy | 2017-09-20 14:45:06 +0200 |
---|---|---|
committer | Eric Blake | 2017-09-25 15:21:26 +0200 |
commit | 93970672210ca1ee45fdebbc11e1fd97916c7c8e (patch) | |
tree | af001062ac01c14413ba00598551909088e9ad91 /util/qemu-thread-posix.c | |
parent | block/nbd-client: refactor nbd_co_receive_reply (diff) | |
download | qemu-93970672210ca1ee45fdebbc11e1fd97916c7c8e.tar.gz qemu-93970672210ca1ee45fdebbc11e1fd97916c7c8e.tar.xz qemu-93970672210ca1ee45fdebbc11e1fd97916c7c8e.zip |
block/nbd-client: simplify check in nbd_co_receive_reply
If we are woken up from while() loop in nbd_read_reply_entry
handles must be equal. If we are woken up from
nbd_recv_coroutines_wake_all s->quit must be true, so we do
not need checking handles equality.
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20170920124507.18841-3-vsementsov@virtuozzo.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'util/qemu-thread-posix.c')
0 files changed, 0 insertions, 0 deletions