Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4292656pxv; Mon, 19 Jul 2021 23:28:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2K2ZqbmtlNIlLkzgi2VvnlE9O5mJ0ukABpn7rPCpX1q4u914slPPRHPjynwtidoTAs2LJ X-Received: by 2002:a05:6402:152:: with SMTP id s18mr38614330edu.221.1626762487479; Mon, 19 Jul 2021 23:28:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626762487; cv=none; d=google.com; s=arc-20160816; b=DQ1UWECOUrjJJVtJXm+tUbXGC8lNTwmGYzBHFtEzNlgtlhigwtME7jBr74D7PpuWAH eTap1/b/2sUQMkKwC4tnNKbyvnsY1gYhY3qpvFEPFCsrW6eRV7pQsAGMieWrHDtwtvAo ao10+WrvxZPv3YoxmvDv/QoQO3iVNL0ZZRalbMjS8RiKg4n+TAc2YQqyr7Y5r99G8mVJ pZLcilaplIhKEqyzvNJE0GqjEnwzBRvsh9SlvxeJ4JUR6h1U07z1er8N7tUo27ScBX5Y V7crJRAq2KgvG28rgsClc/grKe9jcZ0jcvjx6VR8w0VbQpDRlxsWe8yOqGY3iyHyzAjW TLqQ== 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=+pFjrkcG2ZRzROzSDXE/qK9WLlZjt36K6e23WeKajZ8=; b=od59u66gX/SLNzjnVaJH/XbIcwi1s0iomqJtn1RcXyyHZ+i52MtbsGSLZg7rHmoyCm Q2plJWEh8RetTj6zrH+ujBjFWVgb6jSCbAs/LHNVHlNfQnuMdDIihHIQxatIK8zaOtOh SrrHR8XaCIHSYZw9/lStErtUwHIlfKA260oWtEX/1TPxz63nP9QuqxGeaDYoweM3E1pQ /HUgFtzEhCqi2gYW6ShaW9JTd/7RF41LbWg9zbhKQ52kHUnWbSaxWZIMRbox3PfurPnw dj1lSUrHmFc5CkbI4AfOJweycaxoju6GIwDwFYDIu6T+UZqhoMPJi+lEuUhvR1FvfNKm mGBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=cfEzMyi4; 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 nd35si25572932ejc.274.2021.07.19.23.27.44; Mon, 19 Jul 2021 23:28:07 -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=cfEzMyi4; 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 S234796AbhGTFpL (ORCPT + 99 others); Tue, 20 Jul 2021 01:45:11 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:25975 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232191AbhGTFo6 (ORCPT ); Tue, 20 Jul 2021 01:44:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1626762337; 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=+pFjrkcG2ZRzROzSDXE/qK9WLlZjt36K6e23WeKajZ8=; b=cfEzMyi4dscivap6mZVQ4CYHeSuu/QvSwU+v+ncbOTvPfbMyG7o4VNOXdzVToTHF2Krw4h nR2WIewAC3V380eEeWMjma+PgViEwVPofS6XSIxTInaYIbg3eKARlcyGvggWqO60GdVBxH a5zpDokfKyC0bdFWcZvCq/Jgy/tLvo4= Received: from mail-pf1-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-203-ubu1EMiaNamr5XmWoh33mA-1; Tue, 20 Jul 2021 02:25:36 -0400 X-MC-Unique: ubu1EMiaNamr5XmWoh33mA-1 Received: by mail-pf1-f200.google.com with SMTP id x130-20020a627c880000b0290332acd337a6so12947153pfc.23 for ; Mon, 19 Jul 2021 23:25:36 -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=+pFjrkcG2ZRzROzSDXE/qK9WLlZjt36K6e23WeKajZ8=; b=q13O5+Sef+oVMfbQhZ7UC+hjbeSRjJ3nCtr5xXeagNH53BZVd27ZioeWVZLysdb9gy Av/84ohpMpIUNERD/ZQoZAJnwGRAwSlwFvo0vACmOjTUO/KbXPdljYSlfOjXD1pNqBQD tswpsX1i0QlLakVn6NIBDUUADfyDDnV4n3GW5mD1G7EmDZFZGsntswigr98s+3RnpqAE je8pKLBSgGNLDRbXnMhRdpcY2dE79GNceYm+edFupDQUnWnPQiZs0X6b+JqKdTD2zBGb 1rIeiOxLLBtT+XuCxvh/PY5HjLFH3HynYQZVMmHLB0Hyr+XxLTtmHEDJw9hbHsPWuU+9 RhoA== X-Gm-Message-State: AOAM531ykZjx4AjbNlWoQ5UpZU1F+yrONfl8Phex8TNLJqTeLrc0skd+ z83vMclBleJ3WTxwKmGCLceSG0jhcnAEYWOSqbCFDhjPO6r7yBwHyC0AKTMYJA7xQw90ZWMwPnZ 3sx2hwjTRW0n0e1xN535vnJ11dOb4dNFH/Z2QXK9LvX+EBjfq6TRUXVfyBxQkoRJSK9gp8fe4gC zJ X-Received: by 2002:a63:2041:: with SMTP id r1mr14924126pgm.59.1626762334990; Mon, 19 Jul 2021 23:25:34 -0700 (PDT) X-Received: by 2002:a63:2041:: with SMTP id r1mr14924097pgm.59.1626762334630; Mon, 19 Jul 2021 23:25:34 -0700 (PDT) Received: from wangxiaodeMacBook-Air.local ([209.132.188.80]) by smtp.gmail.com with ESMTPSA id d13sm21831104pfn.136.2021.07.19.23.25.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 19 Jul 2021 23:25:34 -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 References: <20210720034039.1351-1-tianxianting.txt@linux.alibaba.com> From: Jason Wang Message-ID: <9a790a52-8f14-1a9a-51e0-9c35a03d33dd@redhat.com> Date: Tue, 20 Jul 2021 14:25:29 +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: <20210720034039.1351-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:40, 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. Thanks > > return 0;