tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Locking in disk(9) api

On Tue, Dec 29, 2009 at 01:36:37PM -0800, John Nemeth wrote:
> } So far, all users have private locks and the disk(9) data is seen
> } as part of the device instance and is protected by such a private lock.
> } I'm not convinced that you need a separate lock just for disk(9) data.
>      Aren't these the stats displayed by iostat(8) [-dDx]?  Do we need
> locking shared with the things that read the stats?  Or, is it
> considered to be okay if the reader gets stats that are in flux?

Well, originally this was read via kvm and always in a state of flux.

                                Michael van Elst
                                "A potential Snark may lurk in every tree."

Home | Main Index | Thread Index | Old Index