Skip to content
Commit 252bd125 authored by Hyeongseok Kim's avatar Hyeongseok Kim Committed by Mike Snitzer
Browse files

dm verity: skip verity work if I/O error when system is shutting down



If emergency system shutdown is called, like by thermal shutdown,
a dm device could be alive when the block device couldn't process
I/O requests anymore. In this state, the handling of I/O errors
by new dm I/O requests or by those already in-flight can lead to
a verity corruption state, which is a misjudgment.

So, skip verity work in response to I/O error when system is shutting
down.

Signed-off-by: default avatarHyeongseok Kim <hyeongseok@gmail.com>
Reviewed-by: default avatarSami Tolvanen <samitolvanen@google.com>
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
parent a2b8b2d9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment