提交 a7a0f9a5 编写于 作者: D Darrick J. Wong

xfs: return EINTR when a fatal signal terminates scrub

If the program calling online fsck is terminated with a fatal signal,
bail out to userspace by returning EINTR, not EAGAIN.  EAGAIN is used by
scrubbers to indicate that we should try again with more resources
locked, and not to indicate that the operation was cancelled.  The
miswiring is mostly harmless, but it shows up in the trace data.
Signed-off-by: NDarrick J. Wong <djwong@kernel.org>
Reviewed-by: NDave Chinner <dchinner@redhat.com>
上级 306195f3
...@@ -25,7 +25,7 @@ xchk_should_terminate( ...@@ -25,7 +25,7 @@ xchk_should_terminate(
if (fatal_signal_pending(current)) { if (fatal_signal_pending(current)) {
if (*error == 0) if (*error == 0)
*error = -EAGAIN; *error = -EINTR;
return true; return true;
} }
return false; return false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册