All of lore.kernel.org
 help / color / mirror / Atom feed
* [Kernel-janitors] Re: [PATCH] pci/cpci_hotplug_core: replace
@ 2004-07-27 22:04 Scott Murray
  2004-07-27 22:10 ` Greg KH
  2004-08-02 22:42 ` Greg KH
  0 siblings, 2 replies; 3+ messages in thread
From: Scott Murray @ 2004-07-27 22:04 UTC (permalink / raw)
  To: kernel-janitors

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1109 bytes --]

On Tue, 27 Jul 2004, Nishanth Aravamudan wrote:

> I would appreciate any comments from the janitors list. This is one (of
> many) cases where I made a decision about replacing
> 
> set_current_state(TASK_INTERRUPTIBLE);
> schedule_timeout(some_time);
> 
> with
> 
> msleep(jiffies_to_msecs(some_time));
> 
> msleep() is not exactly the same as the previous code, but I only did
> this replacement where I thought long delays were *desired*. If this is
> not the case here, then just disregard this patch. 

msleep sets TASK_UNINTERRUPTIBLE and not TASK_INTERRUPTIBLE, which I think 
will work okay in this instance, but am not actually sure.  I'm leaving 
for two weeks vacation tomorrow, so I'm not in a position to test this out 
at the moment.  Greg, can you comment on the correctness of this?

My only other comment is that I would prefer you keep the braces in the 
if/else statements.  There may only be one actual line of code in the 
bodies, but with a comment above that one line I find it looks odd.  

Scott


-- 
Scott Murray
SOMA Networks, Inc.
Toronto, Ontario
e-mail: scottm@somanetworks.com

[-- Attachment #2: Type: text/plain, Size: 167 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-08-02 22:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-27 22:04 [Kernel-janitors] Re: [PATCH] pci/cpci_hotplug_core: replace Scott Murray
2004-07-27 22:10 ` Greg KH
2004-08-02 22:42 ` Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.