* /dev/nvram driver
@ 2001-06-22 18:50 Tim Hockin
2001-06-22 19:02 ` Jeff Garzik
2001-06-22 22:07 ` Alan Cox
0 siblings, 2 replies; 3+ messages in thread
From: Tim Hockin @ 2001-06-22 18:50 UTC (permalink / raw)
To: Linux Kernel Mailing List
Who is maintaining the /dev/nvram driver? I have a couple things I want to
suggest/ask.
Currently it tracks O_EXCL on open() and sets a flag, whereby no other
open() calls can succeed. Is this functionality really needed? Perhaps it
should just be a reader/writer model : n readers or 1 writer. In that
case, should open() block on a writer, or return -EBUSY?
nvram_release() calls lock_kernel() - any particular reason?
various other bits (nvram_open_cnt, for example) are not SMP safe. I'm
making sure it is safe now.
What I really want to know is: should I bother making nvram_open_cnt SMP
safe, or should it just go away all together. I vote for the latter
option, unless something depends on this behavior (in which case, other
fixes are needed, because it is broken :).
comments?
--
Tim Hockin
Systems Software Engineer
Sun Microsystems, Cobalt Server Appliances
thockin@sun.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: /dev/nvram driver
2001-06-22 18:50 /dev/nvram driver Tim Hockin
@ 2001-06-22 19:02 ` Jeff Garzik
2001-06-22 22:07 ` Alan Cox
1 sibling, 0 replies; 3+ messages in thread
From: Jeff Garzik @ 2001-06-22 19:02 UTC (permalink / raw)
To: Tim Hockin; +Cc: Linux Kernel Mailing List
Tim Hockin wrote:
> Who is maintaining the /dev/nvram driver? I have a couple things I want to
> suggest/ask.
I haven't seen any patches for ages to nvram, so I presume nobody.
> What I really want to know is: should I bother making nvram_open_cnt SMP
> safe, or should it just go away all together. I vote for the latter
> option, unless something depends on this behavior (in which case, other
> fixes are needed, because it is broken :).
Once you figure out what the best behavior is (which I'm not sure of,
myself), I would suggest using a semaphore in the open and release
methods.
Jeff
--
Jeff Garzik | Andre the Giant has a posse.
Building 1024 |
MandrakeSoft |
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: /dev/nvram driver
2001-06-22 18:50 /dev/nvram driver Tim Hockin
2001-06-22 19:02 ` Jeff Garzik
@ 2001-06-22 22:07 ` Alan Cox
1 sibling, 0 replies; 3+ messages in thread
From: Alan Cox @ 2001-06-22 22:07 UTC (permalink / raw)
To: Tim Hockin; +Cc: Linux Kernel Mailing List
> Currently it tracks O_EXCL on open() and sets a flag, whereby no other
> open() calls can succeed. Is this functionality really needed? Perhaps it
> should just be a reader/writer model : n readers or 1 writer. In that
> case, should open() block on a writer, or return -EBUSY?
Several tools expect that mode of behaviour so that they can atomically
recompute the checksum when writing low bytes of the CMOS
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-06-22 22:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-06-22 18:50 /dev/nvram driver Tim Hockin
2001-06-22 19:02 ` Jeff Garzik
2001-06-22 22:07 ` Alan Cox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox