Subject: Re: CVS commit: src
To: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
From: Elad Efrat <elad@NetBSD.org>
List: tech-kern
Date: 12/01/2006 23:51:49
YAMAMOTO Takashi wrote:
>> Module Name:	src
>> Committed By:	elad
>> Date:		Fri Dec  1 16:06:09 UTC 2006
>>
>> Modified Files:
>> 	src/share/man/man9: uvm.9
>> 	src/sys/uvm: uvm_extern.h uvm_swap.c
>>
>> 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?

we will be using this soon in code that checks whether a disk device is
in use by the system.

-e.

-- 
Elad Efrat