summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorDaniel Wagner <dwagner@suse.de>2021-03-11 16:19:17 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-03-30 14:36:59 +0200
commit4c083481b30a17568273deed595736e091d17a65 (patch)
tree816f3c8f6109f4fb3255cc8ea1c310e2b7aeae1c /arch
parent29898ad7b4e99bb4366fae915b7c3ea234584774 (diff)
downloadlinux-stable-4c083481b30a17568273deed595736e091d17a65.tar.gz
linux-stable-4c083481b30a17568273deed595736e091d17a65.tar.bz2
linux-stable-4c083481b30a17568273deed595736e091d17a65.zip
block: Suppress uevent for hidden device when removed
[ Upstream commit 9ec491447b90ad6a4056a9656b13f0b3a1e83043 ] 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 <dwagner@suse.de> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Martin Wilck <mwilck@suse.com> Link: https://lore.kernel.org/r/20210311151917.136091-1-dwagner@suse.de Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions