From patchwork Wed Jan 13 21:39:52 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Van Hensbergen X-Patchwork-Id: 72723 X-Patchwork-Delegate: ericvh@gmail.com Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id o0DLtgeJ010999 for ; Wed, 13 Jan 2010 21:55:42 GMT Received: from localhost ([127.0.0.1] helo=sfs-ml-4.v29.ch3.sourceforge.com) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1NVBBi-0004m7-Nk; Wed, 13 Jan 2010 21:55:38 +0000 Received: from sfi-mx-2.v28.ch3.sourceforge.com ([172.29.28.122] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1NVBBh-0004lz-RV for v9fs-developer@lists.sourceforge.net; Wed, 13 Jan 2010 21:55:37 +0000 Received-SPF: neutral (sfi-mx-2.v28.ch3.sourceforge.com: 32.97.110.151 is neither permitted nor denied by domain of gmail.com) client-ip=32.97.110.151; envelope-from=ericvh@gmail.com; helo=e33.co.us.ibm.com; Received: from e33.co.us.ibm.com ([32.97.110.151]) by sfi-mx-2.v28.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) id 1NVBBg-0002zn-VJ for v9fs-developer@lists.sourceforge.net; Wed, 13 Jan 2010 21:55:37 +0000 Received: from d03relay05.boulder.ibm.com (d03relay05.boulder.ibm.com [9.17.195.107]) by e33.co.us.ibm.com (8.14.3/8.13.1) with ESMTP id o0DLamF4000682 for ; Wed, 13 Jan 2010 14:36:48 -0700 Received: from d03av02.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.195.168]) by d03relay05.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o0DLdsna165090 for ; Wed, 13 Jan 2010 14:39:54 -0700 Received: from d03av02.boulder.ibm.com (loopback [127.0.0.1]) by d03av02.boulder.ibm.com (8.14.3/8.13.1/NCO v10.0 AVout) with ESMTP id o0DLds4L031336 for ; Wed, 13 Jan 2010 14:39:54 -0700 Received: from localhost.localdomain (arlx077.austin.ibm.com [9.3.61.77]) by d03av02.boulder.ibm.com (8.14.3/8.13.1/NCO v10.0 AVin) with ESMTP id o0DLdrCE031303; Wed, 13 Jan 2010 14:39:53 -0700 From: ericvh@gmail.com To: v9fs-developer@lists.sourceforge.net Date: Wed, 13 Jan 2010 15:39:52 -0600 Message-Id: <1263418793-31582-1-git-send-email-ericvh@gmail.com> X-Mailer: git-send-email 1.5.5 X-Spam-Score: -2.8 (--) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. 1.2 SPF_NEUTRAL SPF: sender does not match SPF record (neutral) -4.0 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, medium trust [32.97.110.151 listed in list.dnswl.org] X-Headers-End: 1NVBBg-0002zn-VJ Cc: Eric Van Hensbergen Subject: [V9fs-developer] [PATCH] net/9p: fix virtio transport to correctly update status on connect X-BeenThere: v9fs-developer@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: v9fs-developer-bounces@lists.sourceforge.net diff --git a/net/9p/trans_virtio.c b/net/9p/trans_virtio.c index ea1e3da..67c4bc7 100644 --- a/net/9p/trans_virtio.c +++ b/net/9p/trans_virtio.c @@ -311,6 +311,7 @@ p9_virtio_create(struct p9_client *client, const char *devname, char *args) } client->trans = (void *)chan; + client->status = Connected; chan->client = client; return 0;