[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <2117129c-368f-41e9-5f2d-ad7430c40ec0@kernel.dk>
Date: Thu, 11 Mar 2021 11:48:48 -0700
From: Jens Axboe <axboe@...nel.dk>
To: Daniel Wagner <dwagner@...e.de>, linux-block@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, Christoph Hellwig <hch@....de>,
Martin Wilck <mwilck@...e.com>
Subject: Re: [PATCH v2] block: Suppress uevent for hidden device when removed
On 3/11/21 8:19 AM, 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.
Applied, thanks.
--
Jens Axboe
Powered by blists - more mailing lists