All of lore.kernel.org
 help / color / mirror / Atom feed
* bad: scheduling while atomic! (Part Deux)
@ 2003-06-15 15:07 Russell King
  2003-06-15 15:42 ` Jörn Engel
  0 siblings, 1 reply; 2+ messages in thread
From: Russell King @ 2003-06-15 15:07 UTC (permalink / raw)
  To: Linux Kernel List; +Cc: David Woodhouse

Sigh.  Another MTD deadlock, and cause of scheduling badness on UP preempt.

David, I think MTD needs an audit to ensure that no further cases exist.

static void cfi_intelext_sync (struct mtd_info *mtd)
{
        for (i=0; !ret && i<cfi->numchips; i++) {
                chip = &cfi->chips[i];

                spin_lock(chip->mutex);
                ret = get_chip(map, chip, chip->start, FL_SYNCING);
...
        }

        /* Unlock the chips again */

        for (i--; i >=0; i--) {
                chip = &cfi->chips[i];

                spin_lock(chip->mutex);
...
                spin_unlock(chip->mutex);
        }
}

-- 
Russell King (rmk@arm.linux.org.uk)                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html


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

end of thread, other threads:[~2003-06-15 15:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-15 15:07 bad: scheduling while atomic! (Part Deux) Russell King
2003-06-15 15:42 ` Jörn Engel

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.