Re: [RFC 0/12] introduce down_write_killable for rw_semaphore
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Michal Hocko <mhocko@xxxxxxxxxx>
- Subject: Re: [RFC 0/12] introduce down_write_killable for rw_semaphore
- From: Ingo Molnar <mingo@xxxxxxxxxx>
- Date: Thu, 10 Mar 2016 11:24:13 +0100
- Cc: LKML <linux-kernel@xxxxxxxxxxxxxxx>, Peter Zijlstra <peterz@xxxxxxxxxxxxx>, Ingo Molnar <mingo@xxxxxxxxxx>, Thomas Gleixner <tglx@xxxxxxxxxxxxx>, "H. Peter Anvin" <hpa@xxxxxxxxx>, "David S. Miller" <davem@xxxxxxxxxxxxx>, Tony Luck <tony.luck@xxxxxxxxx>, Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>, Chris Zankel <chris@xxxxxxxxxx>, Max Filippov <jcmvbkbc@xxxxxxxxx>, x86@xxxxxxxxxx, linux-alpha@xxxxxxxxxxxxxxx, linux-ia64@xxxxxxxxxxxxxxx, linux-s390@xxxxxxxxxxxxxxx, linux-sh@xxxxxxxxxxxxxxx, sparclinux@xxxxxxxxxxxxxxx, linux-xtensa@xxxxxxxxxxxxxxxx, linux-arch@xxxxxxxxxxxxxxx, Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>, Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>
- In-reply-to: <20160309144140.GJ27018@dhcp22.suse.cz>
- List-id: <linux-ia64.vger.kernel.org>
- References: <1454444369-2146-1-git-send-email-mhocko@kernel.org> <20160309121850.GA14915@gmail.com> <20160309125641.GH27018@dhcp22.suse.cz> <20160309131710.GB7978@gmail.com> <20160309132855.GI27018@dhcp22.suse.cz> <20160309134339.GA20911@gmail.com> <20160309144140.GJ27018@dhcp22.suse.cz>
- User-agent: Mutt/1.5.23 (2014-03-12)
* Michal Hocko <mhocko@xxxxxxxxxx> wrote:
> > > Why? Each syscall already is killable as the task might be killed by the OOM
> > > killer.
> >
> > Not all syscalls are interruptible - for example sys_sync() isn't:
>
> I guess we are talking past each other. [...]
Heh, you are being polite, I think what happened is that I was being dense and
didn't understand your point:
> [...] What I meant was that while all syscalls are allowed to not return to the
> userspace because the task might get killed but not all of them accept to get
> interrupted by a signal and return with EINTR. None of the man page of mmap,
> mremap, mlock, mprotect list EINTR as a possibility so I would be really afraid
> of returning an unexpected error code.
Indeed.
> Does this make more sense now?
It does!
Thanks,
Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]