Commit 39922889 authored by Li Lingfeng's avatar Li Lingfeng
Browse files

Revert "NFS: Don't interrupt file writeout due to fatal errors"

hulk inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/IAJ2ZJ



--------------------------------

This reverts commit 812ffba3.

Commit 812ffba3 ("NFS: Don't interrupt file writeout due to fatal
errors") tries to keep writing back when hit fatal errors.
However, since page->mapping will be set as NULL in
nfs_write_error_remove_page() and it will be used in nfs_create_request(),
null-ptr-deref will be triggered if we don't stop it immediately.

Fixes: 812ffba3 ("NFS: Don't interrupt file writeout due to fatal errors")
Signed-off-by: default avatarLi Lingfeng <lilingfeng3@huawei.com>
parent 10a6ffc7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment