Re: [RFC 0/12] introduce down_write_killable for rw_semaphore

From
Ingo Molnar <mingo@kernel.org>
Date
2016-03-10 10:24:25
Also in
linux-arch, linux-s390, linux-sh, lkml, sparclinux
Reply to
Michal Hocko, 2016-03-09
* Michal Hocko [off-list ref] wrote:
quoted
quoted
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
Thread (31 messages) 31 messages, 6 authors, last reply 2016-06-10
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help