diff options
author | Hyeongseok Kim <hyeongseok@gmail.com> | 2020-12-03 09:46:59 +0900 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2020-12-21 13:57:25 -0500 |
commit | 252bd1256396cebc6fc3526127fdb0b317601318 (patch) | |
tree | e51119ed0b7b620c58af8fcdac1a681d09d1bc58 /crypto/shash.c | |
parent | a2b8b2d975673b1a50ab0bcce5d146b9335edfad (diff) | |
download | linux-stable-252bd1256396cebc6fc3526127fdb0b317601318.tar.gz linux-stable-252bd1256396cebc6fc3526127fdb0b317601318.tar.bz2 linux-stable-252bd1256396cebc6fc3526127fdb0b317601318.zip |
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: Hyeongseok Kim <hyeongseok@gmail.com>
Reviewed-by: Sami Tolvanen <samitolvanen@google.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'crypto/shash.c')
0 files changed, 0 insertions, 0 deletions