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


Groups > linux.kernel > #1457392

Re: [PATCH v2 1/3] sched: Avoid that __wait_on_bit_lock() hangs

From Bart Van Assche <bvanassche@acm.org>
Newsgroups linux.kernel
Subject Re: [PATCH v2 1/3] sched: Avoid that __wait_on_bit_lock() hangs
Date 2016-08-07 00:30 +0200
Message-ID <s3igp-3m5-7@gated-at.bofh.it> (permalink)
References <s3igp-3m5-9@gated-at.bofh.it> <s3igp-3m5-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 08/05/16 16:09, Bart Van Assche wrote:
> If delivery of a signal and __wake_up_common() happen concurrently
> it is possible that the signal is delivered after __wake_up_common()
> woke up the affected task and before bit_wait_io() checks whether a
> signal is pending. Avoid that the next waiter is not woken up if this
> happens.

(replying to my own e-mail)

Although this patch works reliably in my tests, the above description 
does not explain the hang. I will resend this patch with a better 
description.

Bart.

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


Thread

Re: [PATCH v2 1/3] sched: Avoid that __wait_on_bit_lock() hangs Bart Van Assche <bvanassche@acm.org> - 2016-08-07 00:30 +0200
  Re: [PATCH v2 1/3] sched: Avoid that __wait_on_bit_lock() hangs Oleg Nesterov <oleg@redhat.com> - 2016-08-09 19:30 +0200

csiph-web