diff options
| author | Vladimir Sementsov-Ogievskiy | 2021-06-10 12:08:02 +0200 |
|---|---|---|
| committer | Eric Blake | 2021-06-18 19:21:22 +0200 |
| commit | bbfb7c2f350262f893642433dea66352fc168295 (patch) | |
| tree | 3e97e429acbe46ffac86019a601265952154c8c8 /scripts/checkpatch.pl | |
| parent | block/nbd: add nbd_client_connected() helper (diff) | |
| download | qemu-bbfb7c2f350262f893642433dea66352fc168295.tar.gz qemu-bbfb7c2f350262f893642433dea66352fc168295.tar.xz qemu-bbfb7c2f350262f893642433dea66352fc168295.zip | |
block/nbd: safer transition to receiving request
req->receiving is a flag of request being in one concrete yield point
in nbd_co_do_receive_one_chunk().
Such kind of boolean flag is always better to unset before scheduling
the coroutine, to avoid double scheduling. So, let's be more careful.
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20210610100802.5888-33-vsementsov@virtuozzo.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'scripts/checkpatch.pl')
0 files changed, 0 insertions, 0 deletions
