From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36091) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YuigG-0006cv-PR for qemu-devel@nongnu.org; Tue, 19 May 2015 10:39:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YuigC-0001MF-T3 for qemu-devel@nongnu.org; Tue, 19 May 2015 10:39:40 -0400 Date: Tue, 19 May 2015 15:39:30 +0100 From: Stefan Hajnoczi Message-ID: <20150519143930.GH9338@stefanha-thinkpad.redhat.com> References: <1432032670-15124-1-git-send-email-famz@redhat.com> <1432032670-15124-3-git-send-email-famz@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="wj9ZLJVQDRFjGSdK" Content-Disposition: inline In-Reply-To: <1432032670-15124-3-git-send-email-famz@redhat.com> Subject: Re: [Qemu-devel] [Qemu-block] [PATCH v3 02/13] qemu-nbd: Switch to qemu_set_fd_handler List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng Cc: qemu-block@nongnu.org, Juan Quintela , Jason Wang , qemu-devel@nongnu.org, Vincenzo Maffione , "Vassili Karpov (malc)" , Gerd Hoffmann , Stefan Hajnoczi , Amit Shah , Paolo Bonzini , Giuseppe Lettieri , Luigi Rizzo --wj9ZLJVQDRFjGSdK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 19, 2015 at 10:50:59AM +0000, Fam Zheng wrote: > Achieved by: >=20 > - Remembering the server fd with a global variable, in order to access > it from nbd_client_closed. >=20 > - Checking nbd_can_accept() and updating server_fd handler whenever > client connects or disconnects. >=20 > Signed-off-by: Fam Zheng > Reviewed-by: Paolo Bonzini > --- > qemu-nbd.c | 21 +++++++++++++++++---- > 1 file changed, 17 insertions(+), 4 deletions(-) Reviewed-by: Stefan Hajnoczi --wj9ZLJVQDRFjGSdK Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJVW0siAAoJEJykq7OBq3PI2wEIAKeGC+zl6Gn0P0ib4n9sfzdu Up4ycNeUXh/zzM4zyCKWEzS63A2+EoaLHsn6mQm8IFFhHYx7CLsM+ZBCp8SDIRog qaj9aL6F/yucb3h99tyI8Tpt70yVDV1BEU8ZRPu1rWOLgt0Lv1x5aye1xtYPXSF2 bWYZ7jZz0UMj5XPPaI8k/9UIhdg8WoTsAZ6uis7pGvQ0HfwfzuuMjbzx5g5P+ybc dNYa70U6xjXOiUIt9SP92uabSP9qy4U1ayzPWssQXmiO8GC0f12T8ZEJajFP60ty eitmzx83etXsEIC2zMttMW3uR9+Xx+S5qvVttjJ7PsoG1gVCiBHjNFPUZSS/+7M= =ePn6 -----END PGP SIGNATURE----- --wj9ZLJVQDRFjGSdK--