tech-kern archive

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

Re: Locking in disk(9) api (John Nemeth) writes:

>[...]  Would it not
>make sense to use the same lock to protect the stats themselves from
>being updated while they are being read (especially now that sysctl is
>used to read them instead of kvm)?

You would need to fetch this lock also on the producer side, adding
some overhead (the driver lock used now is essentially free because
you need it to protect other private data). Also, this would be one
global lock for all stats.

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

Home | Main Index | Thread Index | Old Index