Re: [PATCH 11/18] coredump: make coredump_wait wait for mma_sem for write killable
From: Oleg Nesterov
Date: Mon Feb 29 2016 - 10:58:14 EST
On 02/29, Michal Hocko wrote:
>
> --- a/fs/coredump.c
> +++ b/fs/coredump.c
> @@ -410,7 +410,9 @@ static int coredump_wait(int exit_code, struct core_state *core_state)
> core_state->dumper.task = tsk;
> core_state->dumper.next = NULL;
>
> - down_write(&mm->mmap_sem);
> + if (down_write_killable(&mm->mmap_sem))
> + return -EINTR;
> +
ACK, thanks.
Oleg.