Re: [PATCH 2/6] nfsd: swap fs root in NFSd kthreads

2012-12-11 Thread Stanislav Kinsbursky
11.12.2012 18:54, Al Viro пишет: On Tue, Dec 11, 2012 at 06:00:00PM +0400, Stanislav Kinsbursky wrote: 11.12.2012 00:28, J. Bruce Fields ??: On Thu, Dec 06, 2012 at 06:34:47PM +0300, Stanislav Kinsbursky wrote: NFSd does lookup. Lookup is done starting from current->fs->root. NFSd is a

Re: [PATCH 2/6] nfsd: swap fs root in NFSd kthreads

2012-12-11 Thread Al Viro
On Tue, Dec 11, 2012 at 06:00:00PM +0400, Stanislav Kinsbursky wrote: > 11.12.2012 00:28, J. Bruce Fields ??: > >On Thu, Dec 06, 2012 at 06:34:47PM +0300, Stanislav Kinsbursky wrote: > >>NFSd does lookup. Lookup is done starting from current->fs->root. > >>NFSd is a kthread, cloned by kthre

Re: [PATCH 2/6] nfsd: swap fs root in NFSd kthreads

2012-12-11 Thread Stanislav Kinsbursky
11.12.2012 00:28, J. Bruce Fields пишет: On Thu, Dec 06, 2012 at 06:34:47PM +0300, Stanislav Kinsbursky wrote: NFSd does lookup. Lookup is done starting from current->fs->root. NFSd is a kthread, cloned by kthreadd, and thus have global (but luckely unshared) root. So we have to swap root to tho

Re: [PATCH 2/6] nfsd: swap fs root in NFSd kthreads

2012-12-10 Thread J. Bruce Fields
On Thu, Dec 06, 2012 at 06:34:47PM +0300, Stanislav Kinsbursky wrote: > NFSd does lookup. Lookup is done starting from current->fs->root. > NFSd is a kthread, cloned by kthreadd, and thus have global (but luckely > unshared) root. > So we have to swap root to those, which process, started NFSd, has