* Re: [KJ] Re: riscom8: replace cli()/sti()
@ 2004-12-20 21:35 Jim Nelson
0 siblings, 0 replies; only message in thread
From: Jim Nelson @ 2004-12-20 21:35 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 1175 bytes --]
Domen Puncer wrote:
> On 15/12/04 23:45 -0600, james4765@verizon.net wrote:
>
>>This is an attempt to get the riscom8 driver working on SMP. I think I did it
>>properly (per what Documentation/cli-sti-removal.txt details).
>
>
> rc_interrupt also needs to protect data with locks (on UP it was ok,
> because interrupts were disabled).
>
> Around line 1130 there are two msleep_interruptible calls under lock
> (this was wrong before too).
>
> Some functions don't need to save flags, because you know they are
> never called from interrupt (all from riscom_ops?).
>
> IMHO it would be nice to notice somewhere what is protected by lock
> (rc_board and rc_port structures); and it would probably be better to
> have a lock per board in riscom_board struct.
>
>
> Domen
>
I had thought the same re putting the spinlock in the per-board structure (after
submitting all of these - of course) - and got a lot of other pointers on how to
make things SMP-correct. Go ahead and disregard this set of patches - I'll have
to take a more careful look at each one of them.
I thought I had seen some sleep-while-locked problems, but thought I was just
reading it wrong.
[-- 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] only message in thread
only message in thread, other threads:[~2004-12-20 21:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-20 21:35 [KJ] Re: riscom8: replace cli()/sti() Jim Nelson
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.