net/9p: fix virtio transport to correctly update status on connect
authorEric Van Hensbergen <ericvh@gmail.com>
Sat, 16 Jan 2010 00:54:03 +0000 (18:54 -0600)
committerEric Van Hensbergen <ericvh@gmail.com>
Mon, 8 Feb 2010 20:13:30 +0000 (14:13 -0600)
The 9p virtio transport was not updating its connection status correctly
preventing it from being able to mount the server.

Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
net/9p/trans_virtio.c

index ea1e3daabefeddb1dc6f46ddf5538b33cc3c0317..67c4bc704c5a1e733e22d1386acb62ee45e8af41 100644 (file)
@@ -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;