Re: owner field in `struct fs'

From: Philipp Rumpf (prumpf@uzix.org)
Date: Sat Jun 24 2000 - 15:33:36 EST


On Sat, Jun 24, 2000 at 09:25:33PM +0100, Alan Cox wrote:
> > Here it is (it compiles both for UP and SMP, I can't test it on SMP though).
> >
> > --- linux/kernel/module.c Fri Jun 23 20:17:18 2000
> > +++ linux-prumpf/kernel/module.c Sat Jun 24 11:53:05 2000
>
> CPU1 CPU2
> spinlock(&card->lock)
> rmmod
> -FREEZE->
> spin on freeze

No. Freeze uses kernel threads not smp_call_function. So it would have
to be

CPU1 CPU2
rmmod spin_lock(&card->lock);
                schedule();
                spin on freeze

scheduling with a spinlock held is usually a bug.

        Philipp

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jun 26 2000 - 21:00:05 EST