login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
June
»
4
Re: [PATCH 1/2] schedule: fix TASK_WAKEKILL vs SIGKILL race
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Peter Zijlstra <a.p.zijlstra@...>
To: Matthew Wilcox <matthew@...>
Cc: Oleg Nesterov <oleg@...>, Andrew Morton <akpm@...>, Ingo Molnar <mingo@...>, Dmitry Adamushko <dmitry.adamushko@...>, Roland McGrath <roland@...>, <linux-kernel@...>
Subject:
Re: [PATCH 1/2] schedule: fix TASK_WAKEKILL vs SIGKILL race
Date: Wednesday, June 4, 2008 - 2:51 pm
On Wed, 2008-06-04 at 11:33 -0600, Matthew Wilcox wrote:
quoted text
> On Wed, Jun 04, 2008 at 09:09:05PM +0400, Oleg Nesterov wrote:
quoted text
> > --- 26-rc2/kernel/sched.c~1_SCHED_KILLABLE 2008-05-18 15:44:18.000000000 +0400 > > +++ 26-rc2/kernel/sched.c 2008-06-04 17:42:59.000000000 +0400 > > @@ -4510,12 +4510,10 @@ need_resched_nonpreemptible: > > clear_tsk_need_resched(prev); > > > > if (prev->state && !(preempt_count() & PREEMPT_ACTIVE)) { > > - if (unlikely((prev->state & TASK_INTERRUPTIBLE) && > > - signal_pending(prev))) { > > + if (unlikely(signal_pending_state(prev->state, prev))) > > prev->state = TASK_RUNNING; > > - } else { > > + else > > deactivate_task(rq, prev, 1); > > - } > > Getting rid of the extra braces is against CodingStyle:
No it doesn't.
quoted text
> Do not unnecessarily use braces where a single statement will do. > > if (condition) > action(); > > This does not apply if one branch of a conditional statement is a single > statement. Use braces in both branches. > > if (condition) { > do_this(); > do_that(); > } else { > otherwise(); > }
Which does not say anything about if (cond) stmt1; else stmt2; like the above. --
unsubscribe notice
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/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 1/2] schedule: fix TASK_WAKEKILL vs SIGKILL race
, Oleg Nesterov
, (Wed Jun 4, 1:09 pm)
Re: [PATCH 1/2] schedule: fix TASK_WAKEKILL vs SIGKILL race
, Matthew Wilcox
, (Wed Jun 4, 1:33 pm)
TASK_WAKEKILL && /sbin/init (was: [PATCH 1/2] schedu...
, Oleg Nesterov
, (Thu Jun 5, 11:23 am)
Re: TASK_WAKEKILL && /sbin/init (was: [PATCH 1/2] sc...
, Oleg Nesterov
, (Thu Jun 5, 12:16 pm)
Re: TASK_WAKEKILL && /sbin/init (was: [PATCH 1/2] sc...
, Matthew Wilcox
, (Thu Jun 5, 11:48 am)
Re: TASK_WAKEKILL && /sbin/init (was: [PATCH 1/2] sc...
, Oleg Nesterov
, (Thu Jun 5, 12:04 pm)
Re: [PATCH 1/2] schedule: fix TASK_WAKEKILL vs SIGKILL race
, Peter Zijlstra
, (Wed Jun 4, 2:51 pm)
Re: [PATCH 1/2] schedule: fix TASK_WAKEKILL vs SIGKILL race
, Oleg Nesterov
, (Wed Jun 4, 2:01 pm)
Re: [PATCH 1/2] schedule: fix TASK_WAKEKILL vs SIGKILL race
, Matthew Wilcox
, (Wed Jun 4, 3:52 pm)
Re: [PATCH 1/2] schedule: fix TASK_WAKEKILL vs SIGKILL race
, Oleg Nesterov
, (Thu Jun 5, 11:23 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Linus Torvalds
Linux 2.6.27-rc8
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Linus Torvalds
Linux 2.6.20-rc6
Mike Snitzer
Re: Distributed storage.
git
:
linux-netdev
:
Gerrit Renker
[PATCH 03/37] dccp: List management for new feature negotiation
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
David Miller
[GIT]: Networking
Herbert Xu
Re: Kernel oops with 2.6.26, padlock and ipsec: probably problem with fpu state ch...
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
1 user
and
764 guests
online.
Online users
bobby33ser
Syndicate