Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
block: don't send uevent for empty disk when not invalidating
Commit 6917d06 ("block: merge invalidate_partitions into rescan_partitions") caused a regression where systemd-udevd spins forever using max CPU starting at boot time. It's caused by a behavior change where a KOBJ_CHANGE uevent is now sent in a case where previously it wasn't. Restore the old behavior. Fixes: 6917d06 ("block: merge invalidate_partitions into rescan_partitions") Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Eric Biggers <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
- Loading branch information