Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4293652pxv; Mon, 19 Jul 2021 23:30:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJysqW2xIbZymM4JFRBd2M30vHpn9nFyHbklK0nxhY4Z2Y1yHlz1FZfOMqLCxxWpNfhuu9xA X-Received: by 2002:a05:6402:1d96:: with SMTP id dk22mr38441722edb.7.1626762627991; Mon, 19 Jul 2021 23:30:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626762627; cv=none; d=google.com; s=arc-20160816; b=kPW1o5Rk8OPqyeDszwmgdut9jxPayIlhNH4idaf0kreQQ9kGUeToiMPiEgMe9CzsUF JBIxvgW/MAaay+IgZul2ZyfWKaoFQkEyuJiSWB6ARKvMINz28eq6Xa5m05Adpri8Tfnr vWDoY/Hl48R/Uqu9aTceZ1GwcXddH/kCXD6kP213hvrGxftOsTXk6TNldEUNnKluUXdn nTtxREcwiTqlp/yDn07gRf0wF+kpZdHZwJQgYzdsr38toGIrZE6uXEW77qGrJShkUkRg 3PlCYvpu+L+IuX5KISOPsKApNaXB2FhRgmOv5uQjSvj4eBHyeeqJ9nZ4JGSVsHG/nx15 97jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=KNH6zsjCfAXwZqQxKujTcuZRpVuHUvtcZf7vWJW9dkY=; b=chnF28hqGRUgrh3/UJgFMf7V86sd2NhaWlvT7+gRUFYe5rFfHqs+dM+ghWkBrZUheY 9yTl5Yq74BA4s8fRNMcgBwu/C7JkHHHO1jXQ4tDD0q1pC5RoCSvZfoQ3izKGkoJ1mA0e XUF3FDReM4GLYEmG+yYOYb0XQ4AfQIGYF+wQVSAwBrtwkCDqwkXbYaRHzd3yp6rglQbS YkL3n70BhRxLR+z30llSgIeiP1iibbqVzR9RRwho8RvjTwQoDSJIJHchNcfJDMAcIU2M j+WHWzeAQkqZ82G7kL8O3zNIWjw0pVzqjft47qrN85MCTB1UKohlpLrkYrV2ROTf9j/7 9Jjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=EDarrPon; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g11si72650ejp.11.2021.07.19.23.30.03; Mon, 19 Jul 2021 23:30:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=EDarrPon; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234472AbhGTFsB (ORCPT + 99 others); Tue, 20 Jul 2021 01:48:01 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:37467 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230478AbhGTFr5 (ORCPT ); Tue, 20 Jul 2021 01:47:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1626762516; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KNH6zsjCfAXwZqQxKujTcuZRpVuHUvtcZf7vWJW9dkY=; b=EDarrPon84Q1/4jDv0lmhgPyyx870dOW+1mYe3Xmo/SxgDw1Exc122m2b7kyxTJ1q/30NE zeQy/tqh4Ydhvqew6jfuNVhokN3ZrIY8c/Gq5xCpwdnAaRksAkzkvJhqXCuMNHMAxrLFma /Mth/Ko3FQ3UORyVk06Nhsd5S/2Ie+c= Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-293-UcxnJD-RMnO7Tv-moppJIg-1; Tue, 20 Jul 2021 02:28:34 -0400 X-MC-Unique: UcxnJD-RMnO7Tv-moppJIg-1 Received: by mail-pg1-f198.google.com with SMTP id z14-20020a63e54e0000b029022cae6eb6eeso17014127pgj.12 for ; Mon, 19 Jul 2021 23:28:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=KNH6zsjCfAXwZqQxKujTcuZRpVuHUvtcZf7vWJW9dkY=; b=AVAI0hpnY4XIElop8mqSJPQYTxOtKpm6gI8gVDhc/4AeJExf7Ibbn1nxcWZuOgaJ0B 8fF0Ht8m43YVlRJBvV+lj/RhguJZmw+3bO+EBxjl/XGOmtcpQ9RM5NLuCQoiTCndDFWM eDLdk2HVa3+LrataQCndSa88Brcw4l5PchTlgaj8uAXGDlG/NIqT1hTNgGpJ1mh1xWTe yvYxGBoAhFKKugGlYmiMLEja0TNh8XetK0fh9V52LbA1vB/gUrxwpwMjteoHnokQKkdV u9ecYVIxYrG1X4IEBwhgwkfyxqHxtvnJZ6jWhf1ARzl7X2xSyFY1ZJAjXmEUVNBm6cKO vfbg== X-Gm-Message-State: AOAM532QXUyTFPT03jvE/P5chxGH3+jXdopKTBWxo7nO91JkBKaSSc/0 sdwz/128HydT4qmW5NEkk2mBfjLKDVkreV1CDGKgvWDZ7xSthCHPcpQyCh9xaDrvvYaw1jRPzFw 3yQ0K/mwDdKC1YHQSHsUUqrBC X-Received: by 2002:a63:ee0a:: with SMTP id e10mr29264284pgi.385.1626762513517; Mon, 19 Jul 2021 23:28:33 -0700 (PDT) X-Received: by 2002:a63:ee0a:: with SMTP id e10mr29264267pgi.385.1626762513229; Mon, 19 Jul 2021 23:28:33 -0700 (PDT) Received: from wangxiaodeMacBook-Air.local ([209.132.188.80]) by smtp.gmail.com with ESMTPSA id b15sm8946536pfi.49.2021.07.19.23.28.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 19 Jul 2021 23:28:32 -0700 (PDT) Subject: Re: [PATCH] vsock/virtio: set vsock frontend ready in virtio_vsock_probe() To: Xianting Tian , stefanha@redhat.com, sgarzare@redhat.com, davem@davemloft.net, kuba@kernel.org Cc: kvm@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Xianting Tian References: <20210720034255.1408-1-tianxianting.txt@linux.alibaba.com> From: Jason Wang Message-ID: <73d486dd-17d9-a3b3-c1e9-39a1138c0084@redhat.com> Date: Tue, 20 Jul 2021 14:28:24 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210720034255.1408-1-tianxianting.txt@linux.alibaba.com> Content-Type: text/plain; charset=gbk; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ?? 2021/7/20 ????11:42, Xianting Tian ะด??: > From: Xianting Tian > > Add the missed virtio_device_ready() to set vsock frontend ready. > > Signed-off-by: Xianting Tian > --- > net/vmw_vsock/virtio_transport.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/net/vmw_vsock/virtio_transport.c b/net/vmw_vsock/virtio_transport.c > index e0c2c992a..eb4c607c4 100644 > --- a/net/vmw_vsock/virtio_transport.c > +++ b/net/vmw_vsock/virtio_transport.c > @@ -637,6 +637,8 @@ static int virtio_vsock_probe(struct virtio_device *vdev) > vdev->priv = vsock; > rcu_assign_pointer(the_virtio_vsock, vsock); > > + virtio_device_ready(vdev); > + > mutex_unlock(&the_virtio_vsock_mutex); It's better to do this after the mutex_lock(). Thanks > > return 0;