Subject: Re: CVS commit: src
To: None <elad@NetBSD.org>
From: YAMAMOTO Takashi <firstname.lastname@example.org>
Date: 12/03/2006 06:04:56
> >> Log Message:
> >> Introduce uvm_is_swap_device(), to check if the passed struct vnode * is
> >> used as a swap device or not.
> >> Okay mrg@.
> > for what purpose can this racy test make sense?
> you mean racy because I forgot another lock that should be held when
> calling swaplist_find() or a different reason?
i meant, nothing except kernel_lock prevents the state changed before
you examine the return value of the function.
of course, whether it can actually be a problem or not depends
on its usage. hence my question above.