[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: spinlock protection on data question
On Wed, 7 Aug 2002, Zwane Mwaikambo wrote:
> > This is still bad because I have to access the data to find out which lock to
> > use. Secondly, I don't have any guarantees that data is not null between the
> > time I check and the time I access. The only think I can see is to have
> > another global lock. . . Not sure what else I can do.
>
> Not to mention being really susceptible to user craziness ie data->number.
la la la i take that back! I was looking at some other code when i
answered your question.
Zwane
--
function.linuxpower.ca
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/