block/nbd-client: nbd_co_send_request: fix return code
commita693437037328a95d815ad5aec37ac2f8e130e58
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Wed, 20 Sep 2017 12:45:07 +0000 (20 15:45 +0300)
committerEric Blake <eblake@redhat.com>
Mon, 25 Sep 2017 13:21:26 +0000 (25 08:21 -0500)
tree1ffe0df80ff9476b798bd645bef54f8de0e3997f
parent93970672210ca1ee45fdebbc11e1fd97916c7c8e
block/nbd-client: nbd_co_send_request: fix return code

It's incorrect to return success rc >= 0 if we skip qio_channel_writev_all()
call due to s->quit.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20170920124507.18841-4-vsementsov@virtuozzo.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
block/nbd-client.c