[Bug 219362] USB SATA does not correctly shutdown the SSD upon poweroff causing data loss

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.kernel.org/show_bug.cgi?id=219362

--- Comment #15 from Tomas Mudrunka (harviecz@xxxxxxxxx) ---
Ok, i've just went through elixir and found out that
echo o > /proc/sysrq-trigger

actualy leads to kernel_power_off() which is function described as "Shutdown
everything and perform a clean system power_off." and which then calls
kernel_shutdown_prepare() which calls device_shutdown()

weirdly enough this is only true for 'o' and not for 'b', because 'o' handler
is not pre-registered in sysrq.c (unlike 'b') and is additionaly registered by
pm_sysrq_init() in kernel/power/poweroff.c. which seems bit inconsistent at
least, but i am not aware of reasons behind this design.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux