Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp6363272ybi; Wed, 29 May 2019 06:50:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqwOCpfcWcEZRwiHlAcLUgr7JlVPfAptsmsXVmTG345ll4S7Y4JeSdmfZ0wa647aUX0h5klF X-Received: by 2002:a63:5d45:: with SMTP id o5mr15218679pgm.40.1559137811562; Wed, 29 May 2019 06:50:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559137811; cv=none; d=google.com; s=arc-20160816; b=V4FS3IgBr1wVjgH0YKBSFLXKGSfT3OPCNv3Hs9ps4gIhpr0M5iSMlIlRwrEQHIMWwS effW00v7NHoWptd2GoNuATSqnL0Da+sUGe3TJIyGrE+pNvoP3fu/hBi1XwFPAarKVyuc uV8uMKFKfPZvqrzVC8ubGFaQGE3OSSZKhDig2rKQNQJVgvHVUyhb6MPD8Uf4ETp+TGUP HjsELg6O8UtvE2vM72wCuWS0FkY781F3QL34dyRvB3w0ZSWhDJTxdcqYnbs/rKyl7wF6 Tfd9uFhmKg9J+z2H0ME3hXujIUOa2U2SlGPEgFFSDVg2iRbZfDXd15n5jJdARnQR/O4W v2RQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=kAl0wzx3emq5wKGOIuk8klmmZ+hHoJ5g1tlBkCfT5tg=; b=aWNGYTJl+L0VorSw7GkVsYr/wJtTjeKgRuMcoHqGtPsoz3JiB6MGB9Pe0J9ig14WwG Je3QTxu7rOY6URfSXqd3KIOwuh8i6d/gadDoQCTTWyQzV644+9y4wfEuv/f0VWbO/5oP h4VBAOpgufrO3BjVo/OSWEyJda8dWeMj/ZgnZ0I/zOZpQE+96QTlBEEDBJHFvX4vKLPH 6My+JUuBsC9uS7KIaFGLZQu8rDkbpXXm5r84GUxPnQQw2gVzkphHL4z2OQetjxAsexFj 2tPAxFCHaWvE0g/DMZ/U7eYsxZPT5xEbk5l5xM8/oX6V0ZiYwDm3KhMNLLhFhhN3gLTv In5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@toxicpanda-com.20150623.gappssmtp.com header.s=20150623 header.b=R4r88s0e; 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 e64si30149857pfe.178.2019.05.29.06.49.55; Wed, 29 May 2019 06:50:11 -0700 (PDT) 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=@toxicpanda-com.20150623.gappssmtp.com header.s=20150623 header.b=R4r88s0e; 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 S1726863AbfE2Nsk (ORCPT + 99 others); Wed, 29 May 2019 09:48:40 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:34088 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726029AbfE2Nsj (ORCPT ); Wed, 29 May 2019 09:48:39 -0400 Received: by mail-qt1-f195.google.com with SMTP id h1so2643719qtp.1 for ; Wed, 29 May 2019 06:48:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toxicpanda-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=kAl0wzx3emq5wKGOIuk8klmmZ+hHoJ5g1tlBkCfT5tg=; b=R4r88s0eXEjfS9YMRowWrNd+cRCiduJQO1pvRiepcZuGWy/3m1B73VBAJP76M8dDVB +v9gwTpAzUVAqXDbZclLpm02dIpdmExYPVXnq1hUftt/EIiJhRgFVNtrC1XaRzA8EnG/ IEmOQT3c2kzYINeyJ63Hk6ScLWmlJrbuLbWSvS5Q8XQ1SnHc0cMRtTt3izItgrZS4IXY 7phNGHC2gk6us8ZnGmeQgyCNY2HhrqwXScKEUu95Y1cE7j5v7pYDBSdZ9SvppTEDPJe6 tB7cctT7bMqLI/7A15dqStcWlHbJKvBBco0e6b0q+rpcK/vofMClsCyrZv7vhwKnods/ A7jg== 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:references :mime-version:content-disposition:in-reply-to:user-agent; bh=kAl0wzx3emq5wKGOIuk8klmmZ+hHoJ5g1tlBkCfT5tg=; b=WBmy9K5/EnV7coMrdl0UPa66uUjHqLBDvHJs4jywap9M3HwHFp7tR5MxlUeTI21QNM nY/AhYrGQR2lEldgQ6aFD1I7ocJdaD2zmFlWE0s2s02cQwAxpKLVLCu7bGsit5CotqIr ld4SeV3llRrR96s+9r5BXhhYgr5fSZnHltNyieFPFLV/bE8IrZMt3M/3dO+cYFaSqCnL frK3dnPO0CypC6SjzoAocy03Rgi3kYt5wVzcoQJ5EdKIeRXcFYI9D4Zoot0LHDn/SPTP 6wxNwR5RgE1oKs7AgbtEaS3sDp/fKjVUpjdTQRQGzio6ghp/oRazhgXlMyXlEO1yyrbV ICnQ== X-Gm-Message-State: APjAAAUmcJdND+EyS1guGvMUqyed78+FloKVYQyddv7UCwEITJt7ll8j WZ7uAhx9bICPjRv7JpCV/nXCFg== X-Received: by 2002:a0c:8042:: with SMTP id 60mr30581196qva.238.1559137718918; Wed, 29 May 2019 06:48:38 -0700 (PDT) Received: from localhost ([2620:10d:c091:480::d8f]) by smtp.gmail.com with ESMTPSA id c5sm1276114qtj.27.2019.05.29.06.48.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 May 2019 06:48:37 -0700 (PDT) Date: Wed, 29 May 2019 09:48:36 -0400 From: Josef Bacik To: xiubli@redhat.com Cc: josef@toxicpanda.com, axboe@kernel.dk, nbd@other.debian.org, mchristi@redhat.com, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, atumball@redhat.com Subject: Re: [RFC PATCH] nbd: set the default nbds_max to 0 Message-ID: <20190529134834.t6qjq2nkut37zpsf@MacBook-Pro-91.local> References: <20190529080836.13031-1-xiubli@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190529080836.13031-1-xiubli@redhat.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 29, 2019 at 04:08:36PM +0800, xiubli@redhat.com wrote: > From: Xiubo Li > > There is one problem that when trying to check the nbd device > NBD_CMD_STATUS and at the same time insert the nbd.ko module, > we can randomly get some of the 16 /dev/nbd{0~15} are connected, > but they are not. This is because that the udev service in user > space will try to open /dev/nbd{0~15} devices to do some sanity > check when they are added in "__init nbd_init()" and then close > it asynchronousely. > > Signed-off-by: Xiubo Li > --- > > Not sure whether this patch make sense here, coz this issue can be > avoided by setting the "nbds_max=0" when inserting the nbd.ko modules. > Yeah I'd rather not make this the default, as of right now most people still probably use the old method of configuration and it may surprise them to suddenly have to do nbds_max=16 to make their stuff work. Thanks, Josef