aboutsummaryrefslogtreecommitdiff
path: root/block/nbd-client.h
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>2019-02-01 16:01:37 +0300
committerEric Blake <eblake@redhat.com>2019-02-04 15:11:27 -0600
commit88ed4e1bf0c7017c04fac2166ec9a7687aa21f97 (patch)
treeca4c984537c53a5c2fcbb62f7bb2dd5270552a36 /block/nbd-client.h
parent65e01d47653eb127fa917bd9d2f1824a00ab2de6 (diff)
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>
Diffstat (limited to 'block/nbd-client.h')
0 files changed, 0 insertions, 0 deletions