From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.0 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,USER_AGENT_NEOMUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3DC5AC28CC0 for ; Wed, 29 May 2019 13:48:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 04C99229EB for ; Wed, 29 May 2019 13:48:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=toxicpanda-com.20150623.gappssmtp.com header.i=@toxicpanda-com.20150623.gappssmtp.com header.b="R4r88s0e" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727282AbfE2Nsk (ORCPT ); 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-Google-Smtp-Source: APXvYqyB5eTIW4f7w0P+quiFs0g3fOGgLPjkmAr1nafYPMij/uj1upXVI9fk2rxr9TJcYXzskqXWew== 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