Re: [PATCH 03/11] locking, rwsem: introduce basis for down_write_killable

From
Davidlohr Bueso <dave@stgolabs.net>
Date
2016-04-07 06:58:25
Also in
linux-arch, linux-s390, linux-sh, lkml, sparclinux
Reply to
Michal Hocko, 2016-04-04
On Mon, 04 Apr 2016, Michal Hocko wrote:
Not sure I got your point here.
You set current to TASK_KILLABLE in the sleep loop, why do you want to change
it here to TASK_RUNNING if its about to be killed? At least in the case of
UNINTERRUPTABLE we do it merely as a redundancy after the breaking out of the
loop. Of course we also acquired the lock in the first place by that time and
we _better_ be running.

Thanks,
Davidlohr
Thread (27 messages) 27 messages, 5 authors, last reply 2016-04-07
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