Re: Question about synchronization (nfssvc, vfs_busy)

2006-06-06 Thread Konstantin Belousov
On Tue, Jun 06, 2006 at 11:25:29AM +0300, Andrey Simonenko wrote: > On Mon, Jun 05, 2006 at 08:30:45PM +0300, Konstantin Belousov wrote: > > On Mon, Jun 05, 2006 at 02:01:36PM +0300, Andrey Simonenko wrote: > > > 2. > > > > > > If vfs_busy() is called without LK_NOWAIT flag, then it can sleep > >

Re: Question about synchronization (nfssvc, vfs_busy)

2006-06-06 Thread Andrey Simonenko
On Mon, Jun 05, 2006 at 08:30:45PM +0300, Konstantin Belousov wrote: > On Mon, Jun 05, 2006 at 02:01:36PM +0300, Andrey Simonenko wrote: > > 2. > > > > If vfs_busy() is called without LK_NOWAIT flag, then it can sleep > > if a filesystem is being unmounted. At some point unmount() will > If vfs_b

Re: Question about synchronization (nfssvc, vfs_busy)

2006-06-05 Thread Konstantin Belousov
On Mon, Jun 05, 2006 at 02:01:36PM +0300, Andrey Simonenko wrote: > 2. > > If vfs_busy() is called without LK_NOWAIT flag, then it can sleep > if a filesystem is being unmounted. At some point unmount() will If vfs_busy() is called without LK_NOWAIT and fs is being unmounted, then vfs_busy return

Question about synchronization (nfssvc, vfs_busy)

2006-06-05 Thread Andrey Simonenko
Greetings, Can somebody comment following questions? I want to know where I'm wrong (I checked CURRENT). 1. If the nfsserver is a KLD, then it can be unloaded. There is the nfssvc(2) which is implemented in nfsserver and it is called without Giant. Suppose nfsrv_numnfsd is equal to 0 and some