[PATCH 3/9] driver core: warn should device_move try to move a need_parent_lock device

sashiko-bot at kernel.org sashiko-bot at kernel.org
Thu Sep 17 09:47:54 PDT 2026


> Currently, no device has need_parent_lock set and is moved by
> device_move. need_parent_lock is only set by the usb bus and very
> few device types ever use device_move.
> 
> Add a warning to device_move to catch should it ever be used on a
> device with need_parent_lock set. The combination would break
> the immutable relationship needed between parent and child for
> need_parent_lock when locking and unlocking both.
> 
> Suggested-by: Tarun Sahu <tarunsahu at google.com>
> Signed-off-by: David Jeffery <djeffery at redhat.com>

Sashiko has reviewed this patch and found no issues. It looks great!

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260917163744.191748-1-djeffery@redhat.com?part=3




More information about the kexec mailing list