diff options
author | Jan Kara <jack@suse.cz> | 2020-12-16 13:18:40 +0300 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2020-12-22 21:08:46 +0300 |
commit | 2d01ddc86606564fb08c56e3bc93a0693895f710 (patch) | |
tree | fb4a69fdb7397bf96f8dc49afa6774bde935544c /fs/zonefs | |
parent | 05c2c00f3769abb9e323fcaca70d2de0b48af7ba (diff) | |
download | linux-2d01ddc86606564fb08c56e3bc93a0693895f710.tar.xz |
ext4: save error info to sb through journal if available
If journalling is still working at the moment we get to writing error
information to the superblock we cannot write directly to the superblock
as such write could race with journalled update of the superblock and
cause journal checksum failures, writing inconsistent information to the
journal or other problems. We cannot journal the superblock directly
from the error handling functions as we are running in uncertain context
and could deadlock so just punt journalled superblock update to a
workqueue.
Signed-off-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20201216101844.22917-5-jack@suse.cz
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/zonefs')
0 files changed, 0 insertions, 0 deletions