Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1345932

Re: [PATCH 11/18] coredump: make coredump_wait wait for mma_sem for write killable

From Oleg Nesterov <oleg@redhat.com>
Newsgroups linux.kernel
Subject Re: [PATCH 11/18] coredump: make coredump_wait wait for mma_sem for write killable
Date 2016-02-29 17:00 +0100
Message-ID <r7yoO-4YQ-11@gated-at.bofh.it> (permalink)
References <r7w3D-3yu-3@gated-at.bofh.it> <r7w3D-3yu-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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.

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH 11/18] coredump: make coredump_wait wait for mma_sem for write killable Michal Hocko <mhocko@kernel.org> - 2016-02-29 14:30 +0100
  Re: [PATCH 11/18] coredump: make coredump_wait wait for mma_sem for  write killable Oleg Nesterov <oleg@redhat.com> - 2016-02-29 17:00 +0100

csiph-web