]> git.proxmox.com Git - mirror_qemu.git/commit
block/nbd-client: simplify check in nbd_co_receive_reply
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Wed, 20 Sep 2017 12:45:06 +0000 (15:45 +0300)
committerEric Blake <eblake@redhat.com>
Mon, 25 Sep 2017 13:21:26 +0000 (08:21 -0500)
commit93970672210ca1ee45fdebbc11e1fd97916c7c8e
treeaf001062ac01c14413ba00598551909088e9ad91
parent319a56cde7313ca42a72e0a145ffa8e7832ada86
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>
block/nbd-client.c