block/nbd-client: don't check ioc
commit88ed4e1bf0c7017c04fac2166ec9a7687aa21f97
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Fri, 1 Feb 2019 13:01:37 +0000 (1 16:01 +0300)
committerEric Blake <eblake@redhat.com>
Mon, 4 Feb 2019 21:11:27 +0000 (4 15:11 -0600)
treeca4c984537c53a5c2fcbb62f7bb2dd5270552a36
parent65e01d47653eb127fa917bd9d2f1824a00ab2de6
block/nbd-client: don't check ioc

We have several paranoid checks for ioc != NULL. But ioc may become
NULL only on close, which should not happen during requests handling.
Also, we check ioc only sometimes, not after each yield, which is
inconsistent. Let's drop these checks. However, for safety, let's leave
asserts instead.

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