linux-next: manual merge of the userns tree with the cel tree
Subsystems (2)
[email protected]
maintainerHi all,
Today's linux-next merge of the userns tree got a conflict in:
fs/nfsd/nfssvc.c
between commit:
cfb05a7336741 ("NFSD: narrow nfsd_mutex protection in nfsd thread")
from the cel tree and commit:
ca3574bd653ab ("exit: Rename module_put_and_exit to module_put_and_kthread_exit")
from the userns tree.
I fixed it up (see below) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts.
fs/nfsd/nfssvc.c +0 -0
@@@ -977,25 -982,11 +977,25 @@@ out/* Release the thread */ svc_exit_thread (rqstp); -nfsd_destroy (net); +/* We need to drop a ref, but may not drop the last reference + * without holding nfsd_mutex, and we cannot wait for nfsd_mutex as that + * could deadlock with nfsd_shutdown_threads() waiting for us. + * So three options are: + * - drop a non-final reference, + * - get the mutex without waiting + * - sleep briefly andd try the above again + */ + while (!svc_put_not_last(nn->nfsd_serv)) { + if (mutex_trylock(&nfsd_mutex)) { +nfsd_put (net); +mutex_unlock (&nfsd_mutex); + break; + } +msleep (20 ); + }/* Release module */ -module_put_and_exit (0 ); -mutex_unlock (&nfsd_mutex); +module_put_and_kthread_exit (0 );return 0 ; }
Mark Brown
maintainerQuoted 5 lines · On Thu, Dec 16, 2021 at 07:34:12PM +0000, [email protected] wrote:
Hi all,
Today's linux-next merge of the userns tree got a conflict in:
fs/nfsd/nfssvc.c
This is also causing further build errors including but not limited to:
/tmp/next/build/kernel/fork.c: In function 'copy_process':/tmp/next/build/kernel/fork.c:2106:4: error: label 'bad_fork_cleanup_threadgroup_lock' used but not defined
2106 | goto bad_fork_cleanup_threadgroup_lock;
| ^~~~Partly due to vaccine side effects and partly in the interest of time I'm going to use the userns tree from yesterday.
Hi Mark,
Quoted 10 lines · On Thu, 16 Dec 2021 20:22:32 +0000 Mark Brown <[email protected]> wrote:
Quoted 5 lines · On Thu, Dec 16, 2021 at 07:34:12PM +0000, [email protected] wrote:
Hi all,
Today's linux-next merge of the userns tree got a conflict in:
fs/nfsd/nfssvc.cThis is also causing further build errors including but not limited to:
Quoted 7 lines
/tmp/next/build/kernel/fork.c: In function 'copy_process':/tmp/next/build/kernel/fork.c:2106:4: error: label 'bad_fork_cleanup_threadgroup_lock' used but not defined2106 | goto bad_fork_cleanup_threadgroup_lock; | ^~~~Partly due to vaccine side effects and partly in the interest of time I'm going to use the userns tree from yesterday.
Caused by commit
40966e316f86 ("kthread: Ensure struct kthread is present for all kthreads")
The label is guarded by CONFIG_NUMA, but the new goto is not.
This is still failing, so I have used the userns tree from next-20211215 for today.
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 21 lines · Stephen Rothwell
Hi Mark,
Quoted 10 lines · On Thu, 16 Dec 2021 20:22:32 +0000 Mark Brown <[email protected]> wrote:
Quoted 5 lines · On Thu, Dec 16, 2021 at 07:34:12PM +0000, [email protected] wrote:
Hi all,
Today's linux-next merge of the userns tree got a conflict in:
fs/nfsd/nfssvc.cThis is also causing further build errors including but not limited to:
Quoted 7 lines
/tmp/next/build/kernel/fork.c: In function 'copy_process':/tmp/next/build/kernel/fork.c:2106:4: error: label 'bad_fork_cleanup_threadgroup_lock' used but not defined2106 | goto bad_fork_cleanup_threadgroup_lock; | ^~~~Partly due to vaccine side effects and partly in the interest of time I'm going to use the userns tree from yesterday.
Quoted 8 lines
Caused by commit
40966e316f86("kthread: Ensure struct kthread is present for all kthreads")The label is guarded by
CONFIG_NUMA, but the new goto is not.This is still failing, so I have used the userns tree from next-20211215 for today.
Huh. I thought I fixed that.
I will dig in later today. I just got power back after a bad storm so I have not see the emails until just now.
Eric
Hi all,
Quoted 8 lines · On Thu, 16 Dec 2021 19:34:12 +0000 [email protected] wrote:
Today's linux-next merge of the userns tree got a conflict in:
fs/nfsd/nfssvc.cbetween commit:
cfb05a7336741("NFSD: narrownfsd_mutexprotection in nfsd thread")
This is now commit 9d3792aefdcd
Quoted 46 lines
from the cel tree and commit:
ca3574bd653ab("exit: Renamemodule_put_and_exittomodule_put_and_kthread_exit")from the userns tree.
I fixed it up (see below) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts.
fs/nfsd/nfssvc.c +1
-1@@@ -977,25 -982,11 +977,25 @@@ out/* Release the thread */ svc_exit_thread (rqstp); -nfsd_destroy (net); +/* We need to drop a ref, but may not drop the last reference + * without holding nfsd_mutex, and we cannot wait for nfsd_mutex as that + * could deadlock with nfsd_shutdown_threads() waiting for us. + * So three options are: + * - drop a non-final reference, + * - get the mutex without waiting + * - sleep briefly andd try the above again + */ + while (!svc_put_not_last(nn->nfsd_serv)) { + if (mutex_trylock(&nfsd_mutex)) { +nfsd_put (net); +mutex_unlock (&nfsd_mutex); + break; + } +msleep (20 ); + }/* Release module */ -module_put_and_exit (0 ); -mutex_unlock (&nfsd_mutex); +module_put_and_kthread_exit (0 );return 0 ; }
Signature · 2 lines
Cheers, Stephen Rothwell