Commit 4bc1efa1 authored by Al Viro's avatar Al Viro Committed by Youquan Song
Browse files

generic_perform_write()/iomap_write_actor(): saner logics for short copy

mainline inclusion
from mainline-v5.13
commit bc1bb416
category: bugfix
bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I5HAC1


CVE: NA

Intel-SIG: commit bc1bb416 generic_perform_write()/iomap_write_actor():
saner logics for short copy.
Backport for MCA recovery enhance and bug fix.

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

if we run into a short copy and ->write_end() refuses to advance at all,
use the amount we'd managed to copy for the next iteration to handle.

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarYouquan Song <youquan.song@intel.com>
parent d1b9413b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment