All of lore.kernel.org
 help / color / mirror / Atom feed
* [KJ] do all schedule_timeout() calls need to set state first?
@ 2007-03-19 18:00 Robert P. J. Day
  2007-03-19 18:44 ` Nishanth Aravamudan
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Robert P. J. Day @ 2007-03-19 18:00 UTC (permalink / raw)
  To: kernel-janitors


  based on what i've been reading, all calls to schedule_timeout()
*must* first set the current process state to either
TASK_INTERRUPTIBLE or TASK_UNINTERRUPTIBLE, is that correct?

  since i was once again perusing the source tree and noticed the
following in drivers/hwmon/ams/ams-i2c.c (line 93):

        while (remaining) {
                result = ams_i2c_read(AMS_COMMAND);
                if (result = 0 || result & 0x80)
                        return 0;

                remaining = schedule_timeout(remaining);
        }

it certainly *seems* that the state isn't being set here.  is that an
error?  just curious.

rday

-- 
====================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://fsdev.net/wiki/index.php?title=Main_Page
====================================
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/kernel-janitors

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

end of thread, other threads:[~2007-03-19 20:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-19 18:00 [KJ] do all schedule_timeout() calls need to set state first? Robert P. J. Day
2007-03-19 18:44 ` Nishanth Aravamudan
2007-03-19 19:47 ` Robert P. J. Day
2007-03-19 20:25 ` Nishanth Aravamudan

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.