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