Re: [PATCH v2] block: Suppress uevent for hidden device when removed

From
Jens Axboe <axboe@kernel.dk>
Date
2021-03-11 18:49:53
Also in
lkml
Reply to
Daniel Wagner, 2021-03-11
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
Thread (4 messages) 4 messages, 4 authors, last reply 2021-03-11
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help