Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp488707pxf; Thu, 11 Mar 2021 08:07:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJy/8lIU+GW+dF7eX5Cng60TRyS8y7DJevJk5zUuLC5FaIylB1uUCBjUdtu76bKYe0Cfrvbb X-Received: by 2002:aa7:cb82:: with SMTP id r2mr9282708edt.209.1615478874602; Thu, 11 Mar 2021 08:07:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615478874; cv=none; d=google.com; s=arc-20160816; b=cSeChXl3Gr/tAhiFLRo6J0nuHXMsOTrgqsAP+CjeEzckw5ANDbs7Nkx/37zK99+TS2 ah3JdNlThtLJTj3RP/t/VYJiFwfPkHljp16ac0+f8WX5IGy7aKzN1kDU5Li5Iiq3QwUB oihF9NV4cK6EP7Rl9Lng7to6nPMZCzQkIm1AjBxDpz7iRL7hep07osGsaI0G0Fb822V4 yfS6k3+hJzB6CN4a1m7hjeFajyGwOuXt5Qd3270W8yrY/f+qSCS8VV4mEYLWKgcJho0F kkAitEdTIwm+HzxduYTcdINqzmD+bVILEkuyaHY71dG/SFqyjEIJ6Zle9f4vZVwKYH9b cVIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=3qBsv45UjL97TgtzJLfDkDi/Mr3EkrptzlfttXXQt2E=; b=0LPVWhNjDL2bdQMqEi9/L7iqltimazAFXupqCP4hiueM8FlKR0/ikT18Mf1eLS56Q+ UBbYtxy7im+B/8x7SSEwU4zkUzb3g5hk3LfwWue8kH9FireKT5VYyv5eP6Dap2RX9pSi yjjUVeqk21SwN7UxJWhNvh9o1xMU+hqA3XdFwMcm++easicY+goS42eN1oxNex/tHM0W 7wbNpnpWv6Wpxzml9AuvanTotDMFUI1Vz7B6PPKo+jZSKJ0Jsja61/5gcVlHO0dQdo3l zc1Wm5YI4cxfnmvNH6qYT4r5/gj5s0PMweo2KUxbetndpsAlrOWpmjUZRV73fM6ozMkE HykA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=kbn8gS+j; 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=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id sa7si2146853ejb.49.2021.03.11.08.07.30; Thu, 11 Mar 2021 08:07:54 -0800 (PST) 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=@suse.com header.s=susede1 header.b=kbn8gS+j; 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=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234118AbhCKQGe (ORCPT + 99 others); Thu, 11 Mar 2021 11:06:34 -0500 Received: from mx2.suse.de ([195.135.220.15]:39796 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234388AbhCKQGC (ORCPT ); Thu, 11 Mar 2021 11:06:02 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1615478761; h=from:from:reply-to: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=3qBsv45UjL97TgtzJLfDkDi/Mr3EkrptzlfttXXQt2E=; b=kbn8gS+jY6nAxt918hAN+fu75RmT9tlBvxP90VfLOTuckANF5bfFqh9VKuapV/ow0+F7vc RQqEVoVRnzm2+l5Ggm0hQb3PYBA/FLXdPIzHDpZgjyvPCNd5zvc9FlL8CheHzyZye4exWN Yo4PkmSLdJG2JtZiET4E0AroDNsAGrw= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id A32A8AC16; Thu, 11 Mar 2021 16:06:01 +0000 (UTC) Message-ID: <56fd14aea3e2063a472eab443eb788ab047ed74a.camel@suse.com> Subject: Re: [PATCH v2] block: Suppress uevent for hidden device when removed From: Martin Wilck To: Daniel Wagner , linux-block@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Jens Axboe , Christoph Hellwig Date: Thu, 11 Mar 2021 17:06:00 +0100 In-Reply-To: <20210311151917.136091-1-dwagner@suse.de> References: <20210311151917.136091-1-dwagner@suse.de> Content-Type: text/plain; charset="ISO-8859-15" User-Agent: Evolution 3.38.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2021-03-11 at 16:19 +0100, Daniel Wagner wrote: > register_disk() suppress uevents for devices with the GENHD_FL_HIDDEN > but enables uevents at the end again in order to announce disk after > possible partitions are created. > > When the device is removed the uevents are still on and user land > sees > 'remove' messages for devices which were never 'add'ed to the system. > > ? KERNEL[95481.571887] remove?? /devices/virtual/nvme- > fabrics/ctl/nvme5/nvme0c5n1 (block) > > Let's suppress the uevents for GENHD_FL_HIDDEN by not enabling the > uevents at all. > > Signed-off-by: Daniel Wagner Reviewed-by: Martin Wilck