Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1292430
| From | Oleg Nesterov <oleg@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [tip:locking/core] sched/wait: Fix signal handling in bit wait helpers |
| Date | 2015-12-15 19:20 +0100 |
| Message-ID | <qG2mB-7LE-9@gated-at.bofh.it> (permalink) |
| References | (4 earlier) <qDHFE-5pb-3@gated-at.bofh.it> <qDUCS-5lP-1@gated-at.bofh.it> <qE9iy-6It-3@gated-at.bofh.it> <qEudl-3DB-33@gated-at.bofh.it> <qEun0-3Hu-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 12/11, Peter Zijlstra wrote:
>
> On Fri, Dec 11, 2015 at 03:30:33AM -0800, Paul Turner wrote:
>
> > > Blergh, all I've managed to far is to confuse myself further. Even
> > > something like the original (+- the EINTR) should work when we consider
> > > the looping, even when mixed with an occasional spurious wakeup.
> > >
> > >
> > > int bit_wait()
> > > {
> > > if (signal_pending_state(current->state, current))
> > > return -EINTR;
> > > schedule();
> > > }
>
> So I asked Vladimir to test that (simply changing the return from 1 to
> -EINTR) and it made his fail much less likely but it still failed in the
> same way.
>
> So I'm fairly sure I'm still missing something :/
Same here...
Yes, "return 1" in bit_wait_io() doesn't look right. For example
do_generic_file_read() can wrongly return if lock_page_killable() returns
this error code. But I fail to understand how this can read to rcu-stall.
Oleg.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
Re: [tip:locking/core] sched/wait: Fix signal handling in bit wait helpers Oleg Nesterov <oleg@redhat.com> - 2015-12-15 19:20 +0100
csiph-web