Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp142634ybi; Wed, 29 May 2019 18:24:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqzaDd+yXDmcNwU69rv08VUB3K9xWI+OuPqjBoMTTO46A2tD1xCdvnEC9dvBAuY+Rq+BQoFi X-Received: by 2002:a17:90a:21ce:: with SMTP id q72mr696430pjc.3.1559179446728; Wed, 29 May 2019 18:24:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559179446; cv=none; d=google.com; s=arc-20160816; b=0XQK0PQg7pvyOyNy61y90FKn5qD1qq3J/pJZ3+Qh51+/MgYD9X3SUFAyPI49HYAl8k J8hcOm2ZqgBPPGA9yKbtOBfAb3jAV2+/kEmeD34nLw3lqSqjO9RDSbTqlX2F6ejWncBE Ffk8shfcTHdtOUXN2x8o0qzetE4l7MYaL1zJW/ryW5p9vy0doYvNZKg1gM5ov2lWVEsf VC92u7gSy2+fozbJWSmHTBsU9JsASlErMGhVxRMvsk7foBdrQTX9WYoJTcyCO69GciGW zNhQZ0Hh28Gc6NTSMieNdGnOxpcD+kIlHXohkunhl97lDwseazTPhzYPjSyfOGv2qiJ5 1GQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=JFQ+K+wFxnYHgp4FItCw0yC9ge3WbfjOSG0Cjwag0rY=; b=Q4wXN4KK/oKUH6SOoc9JX1dCcxCC2yjXQY/GoFAOHTksYKYq/unwJdN8yFvH/qCJ85 HZKSE0o0m43csVdqujM3dHNbd7Kz+wwKlgVaLu7Mufa0NiOgljDGMjlZRXoktp/dwcYz cE9uDdWZExTv+e6ItcCCrmdqQHwlnXnvreM3MGckC12QoztoF7mj8y4SkmYvFC/xPTpH r5XdJI3eCMsocmbreQIaUotdwBJyQS7fAYBHUMqXEg4i8DXMFzPgoN9bNJnFIAtfOdjP pQym2/FPDvha4zwpqFcmqmVg90OpE3e2Iu9et6tQAaZ2cIlu+1qGWCEFxahASZ1LrLn3 oblA== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q6si1110232pjb.31.2019.05.29.18.23.49; Wed, 29 May 2019 18:24:06 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727297AbfE3BWl (ORCPT + 99 others); Wed, 29 May 2019 21:22:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55526 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726867AbfE3BWl (ORCPT ); Wed, 29 May 2019 21:22:41 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 463B8C004BEB; Thu, 30 May 2019 01:22:41 +0000 (UTC) Received: from [10.72.12.96] (ovpn-12-96.pek2.redhat.com [10.72.12.96]) by smtp.corp.redhat.com (Postfix) with ESMTPS id CE5A11001E80; Thu, 30 May 2019 01:22:38 +0000 (UTC) Subject: Re: [RFC PATCH] nbd: set the default nbds_max to 0 To: Josef Bacik Cc: axboe@kernel.dk, nbd@other.debian.org, mchristi@redhat.com, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, atumball@redhat.com References: <20190529080836.13031-1-xiubli@redhat.com> <20190529134834.t6qjq2nkut37zpsf@MacBook-Pro-91.local> From: Xiubo Li Message-ID: <63658620-7d1f-f626-b637-8f551ca07f95@redhat.com> Date: Thu, 30 May 2019 09:22:32 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20190529134834.t6qjq2nkut37zpsf@MacBook-Pro-91.local> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Thu, 30 May 2019 01:22:41 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/5/29 21:48, Josef Bacik wrote: > 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, Sure, make sense to me :-) So this patch here in the mail list will as one note and reminder to other who may hit the same issue in future. Thanks. BRs Xiubo > Josef >