qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 5/5] block/nbd-client: don't check ioc


From: Eric Blake
Subject: Re: [Qemu-devel] [PATCH 5/5] block/nbd-client: don't check ioc
Date: Mon, 7 May 2018 13:08:24 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0

On 05/07/2018 10:44 AM, Vladimir Sementsov-Ogievskiy wrote:
We have several paranoiac 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.

Can (or even should) any of these be replaced by asserts that ioc is not NULL?


Signed-off-by: Vladimir Sementsov-Ogievskiy <address@hidden>
---
  block/nbd-client.c | 14 +-------------
  1 file changed, 1 insertion(+), 13 deletions(-)

--
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]