Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp6417547ybx; Mon, 11 Nov 2019 08:49:43 -0800 (PST) X-Google-Smtp-Source: APXvYqxbXQQw1kkm8yep4R/jzw0QJGL/mwnq5DZyZP8bp/gqk9VXla4XDi9kpQtLCUTMzFNsYP4m X-Received: by 2002:a17:906:9481:: with SMTP id t1mr17079613ejx.0.1573490983376; Mon, 11 Nov 2019 08:49:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573490983; cv=none; d=google.com; s=arc-20160816; b=zdivrUW1ZMakA9rWCjUyZlaOI1SrT0tyPXpS5im7soe5F8AZyHU3jOegHgell220wJ Dow6BcUT+YMJdk3QGRwx1Nk5pGjtBYxaeIM9DSerJt/IxnX0jPlSv6/zEVCBe/SAKoDL AVU+y8FEmq2zjfSWqrzeCGu2RnO45r081lXNajWRIR8sN738Gh9JPHghUQganF+7lXe/ dfdUYUl0YJvWBDBdEApOTT1dEw6Ic6HxYbwpmrIIAZky+9d+u1OfTXcyda7q7XCs1FCi 6uFwFsQJQi3e3YfnT8yunewWg0hSs6vmF7Txq3s1taVViFFHp5WGTllq0FqmZnkN2JZa NHMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=1uln3PQWpJHVN0cvSdX7VnkuLpysZdK64D1CGthDMQQ=; b=XWfhl+xbosFiD529uGo7IdGndCTO9rLSFLBtbgEysQDZvETPkulJsvYujjjUnTDiY0 4iTNVHgUGbtPxCGMtqbOPFlNC+/AwCWWIp5i1SEpPmE2xvI4wEyV6oh+Qcytdg1X+5bd kJB5xLycvz7VQq6IX9hwRRJLecnL5qaR8yXMe1f0FX/7pPTcBmlaE8cZo0hCBoBX7w2D tq/dukxdB6v6nHkmk3YtZWkT+CQc8SIAXA2TvZoiBzLt8c2V8v8R3I5awKksi4UF11uq Ucmnn2rPM+HgRxBm10sjhpD2ROO0VnfiCALM7+xEpF6ZzWX9Zg+Rtm9BQq9pV3lw/cs0 CFtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@networkplumber-org.20150623.gappssmtp.com header.s=20150623 header.b=ZGldm3S4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id oy7si9592099ejb.417.2019.11.11.08.49.19; Mon, 11 Nov 2019 08:49:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@networkplumber-org.20150623.gappssmtp.com header.s=20150623 header.b=ZGldm3S4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726962AbfKKQrX (ORCPT + 99 others); Mon, 11 Nov 2019 11:47:23 -0500 Received: from mail-pf1-f193.google.com ([209.85.210.193]:42467 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726946AbfKKQrX (ORCPT ); Mon, 11 Nov 2019 11:47:23 -0500 Received: by mail-pf1-f193.google.com with SMTP id s5so11022381pfh.9 for ; Mon, 11 Nov 2019 08:47:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=1uln3PQWpJHVN0cvSdX7VnkuLpysZdK64D1CGthDMQQ=; b=ZGldm3S4bKZDsolIkr062FeCWNvgqBDCbXBCZQSlgjXHxjrJOCNka+55vftk5tfbjO xM+8nieUBc2AaHtdsnK3zOkygz7oCeH3iSjCF9E/DpsUwm0ogx6DuoGw4RGJIIjds2xf 9QVw5/y5wXbeGEku9KqrasNNLbW1Qyp1qCPhJFXZov/EYKd0Mdxb2X5C3QjYJ208kiTX Wkw6tBRfnSUeC1R+4MgsXVLIXOE9875v0yvZ1QQsQbBYTzmu+DXPa8l2DiT2+UHlkYlu QJJcdoqKQO0+K+L/5aRb7X+ffsioxLikRuP7FuWx6HD1CpQs+uDJ9EaAgwKeCl2k9QSN FsYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=1uln3PQWpJHVN0cvSdX7VnkuLpysZdK64D1CGthDMQQ=; b=I2Q881HbCxVPwHNABMw1MNY/WXZpO31kRERFtZfSEGz3gwbimjEhpVFGkUSm4MF6+L oQ3lC9R9Td1vw2vBA87aoh0/2i/cDoDH78N8mNDQM9ack87ZjrTFgJz5395iVbmE0o28 gCnF5Hy4YKCzB2fsgBw03RI1fan9Ha+duZgWV+ZEqXXSNrVkTWyq8N3bON7CazweGxae XnqGQVjOJIqUO2asJ4nA8XiXHcWoa9GHHMC4yINZB4pk+QMBldCP32Z611HPUkisCiJL hXG9N01kDlG1+/XK/bE4CcC20kO7bvRE10nJ16mqrKGjx6Nw9R0hFt/KAwIc2HEa/OTr ZxiQ== X-Gm-Message-State: APjAAAVn/Y1KVPWkyYvi8GdE0EFfr+E91bROqODy77sLi/4+8UzQhBPN ZX3Horu/zwEZ8V1Hcm5xxsgraw== X-Received: by 2002:a62:1bd0:: with SMTP id b199mr31175476pfb.44.1573490842323; Mon, 11 Nov 2019 08:47:22 -0800 (PST) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id 186sm4038077pfe.141.2019.11.11.08.47.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Nov 2019 08:47:21 -0800 (PST) Date: Mon, 11 Nov 2019 08:47:12 -0800 From: Stephen Hemminger To: "Greg KH" Cc: , , , "KY Srinivasan" , "Haiyang Zhang" , "Stephen Hemminger" , , , , , , , "Michael Kelley" , "Tianyu Lan" , , , , "vkuznets" Subject: Re: [PATCH] VFIO/VMBUS: Add VFIO VMBUS driver support Message-ID: <20191111084712.37ba7d5a@hermes.lan> In-Reply-To: <20191111094920.GA135867@kroah.com> References: <20191111084507.9286-1-Tianyu.Lan@microsoft.com> <20191111094920.GA135867@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 11 Nov 2019 01:49:20 -0800 "Greg KH" wrote: > > + ret = sysfs_create_bin_file(&channel->kobj, > &ring_buffer_bin_attr); > > + if (ret) > > + dev_notice(&dev->device, > > + "sysfs create ring bin file failed; %d\n", > ret); > > + > > Again, don't create sysfs files on your own, the bus code should be > doing this for you automatically and in a way that is race-free. > > thanks, > > greg k-h The sysfs file is only created if the VFIO/UIO driveris used.