linux-next: build failure after merge of the scsi-mkp tree
Subsystems (3)
Hi Martin,
After merging the scsi-mkp tree, today's linux-next build (x86_64 allmodconfig) failed like this:
ERROR: "init_rcu_head" [drivers/scsi/scsi_mod.ko] undefined!
ERROR: "destroy_rcu_head" [drivers/scsi/scsi_mod.ko] undefined!
Caused by commit
ac90420f17c9 ("scsi: core: Ensure that the SCSI error handler gets woken up")
I have used the scsi-mkp tree from next-20171206 for today.
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 11 lines · Stephen Rothwell
After merging the scsi-mkp tree, today's linux-next build (
x86_64allmodconfig) failed like this:ERROR: "
init_rcu_head" [drivers/scsi/scsi_mod.ko] undefined!
ERROR: "destroy_rcu_head" [drivers/scsi/scsi_mod.ko] undefined!Caused by commit
ac90420f17c9("scsi: core: Ensure that the SCSI error handler gets woken up")I have used the scsi-mkp tree from next-20171206 for today.
Does that mean I'm the first one who added RCU code to the SCSI core? Anyway, I will fix this and repost the patch series that introduced this build failure. Sorry for the inconvenience.
Bart.
Hi Bart,
[cc'ing some RCU people ...]
Quoted 8 lines · On Thu, 7 Dec 2017 03:59:30 +0000 Bart Van Assche <[email protected]>…
Quoted 6 lines · Stephen Rothwell
After merging the scsi-mkp tree, today's linux-next build (
x86_64allmodconfig) failed like this:ERROR: "
init_rcu_head" [drivers/scsi/scsi_mod.ko] undefined!
ERROR: "destroy_rcu_head" [drivers/scsi/scsi_mod.ko] undefined!
Quoted 7 lines
Quoted 5 lines
Caused by commit
ac90420f17c9("scsi: core: Ensure that the SCSI error handler gets woken up")I have used the scsi-mkp tree from next-20171206 for today.
Does that mean I'm the first one who added RCU code to the SCSI core?
The only other uses of init_rcu_head() are in drivers/iommu/intel-svm.c and kernel/irq/irqdesc.c. destroy_rcu_head() appears to not be used anywhere ...
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 17 lines · Stephen Rothwell
Hi Bart,
[cc'ing some RCU people ...]
Quoted 12 lines · On Thu, 7 Dec 2017 03:59:30 +0000 Bart Van Assche <[email protected]>…
Quoted 10 lines · Stephen Rothwell
After merging the scsi-mkp tree, today's linux-next build (
x86_64allmodconfig) failed like this:ERROR: "
init_rcu_head" [drivers/scsi/scsi_mod.ko] undefined!
ERROR: "destroy_rcu_head" [drivers/scsi/scsi_mod.ko] undefined!Caused by commit
ac90420f17c9("scsi: core: Ensure that the SCSI error handler gets woken up")
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
I have used the scsi-mkp tree from next-20171206 for today.
Does that mean I'm the first one who added RCU code to the SCSI core?
The only other uses of
init_rcu_head()are indrivers/iommu/intel-svm.candkernel/irq/irqdesc.c.destroy_rcu_head()appears to not be used anywhere ...
The key point is that Bart appears to be the first to try using them in a module, for which exports are needed. Does the patch below help?
Thanx, Paul
------------------------------------------------------------------------
commit cde4691a3a4591e7355295dd62610e3262159002
Author: Paul E. McKenney <[email protected]> Date: Wed Dec 6 20:39:38 2017 -0800
rcu: Export init_rcu_head() and destroy_rcu_head() to GPL modules
Use of init_rcu_head() and destroy_rcu_head() from modules results in the following build-time error:
ERROR: "init_rcu_head" [drivers/scsi/scsi_mod.ko] undefined!
ERROR: "destroy_rcu_head" [drivers/scsi/scsi_mod.ko] undefined!
This commit therefore adds EXPORT_SYMBOL_GPL() for each to allow them to be used by GPL-licensed kernel modules.
kernel/rcu/update.c +2 -0
@@ -422,11 +422,13 @@ void init_rcu_head(struct rcu_head *head) {debug_object_init (head, &rcuhead_debug_descr); } +EXPORT_SYMBOL_GPL (init_rcu_head);void destroy_rcu_head (struct rcu_head *head) {debug_object_free (head, &rcuhead_debug_descr); } +EXPORT_SYMBOL_GPL (destroy_rcu_head);static bool rcuhead_is_static_object (void *addr) {
Quoted 55 lines · Paul E. McKenney
Quoted 12 lines · Stephen Rothwell
Quoted 11 lines · On Thu, 7 Dec 2017 03:59:30 +0000 Bart Van Assche <[email protected]>…
Quoted 10 lines · Stephen Rothwell
After merging the scsi-mkp tree, today's linux-next build (
x86_64allmodconfig) failed like this:ERROR: "
init_rcu_head" [drivers/scsi/scsi_mod.ko] undefined!
ERROR: "destroy_rcu_head" [drivers/scsi/scsi_mod.ko] undefined!Caused by commit
ac90420f17c9("scsi: core: Ensure that the SCSI error handler gets woken up")Quoted 7 lines
Quoted 3 lines
Quoted 1 line
I have used the scsi-mkp tree from next-20171206 for today.
Does that mean I'm the first one who added RCU code to the SCSI core?
The only other uses of
init_rcu_head()are indrivers/iommu/intel-svm.candkernel/irq/irqdesc.c.destroy_rcu_head()appears to not be used anywhere ...The key point is that Bart appears to be the first to try using them in a module, for which exports are needed. Does the patch below help?
Thanx, Paul
------------------------------------------------------------------------
commit
cde4691a3a4591e7355295dd62610e3262159002Author: Paul E. McKenney <[email protected]> Date: Wed Dec 6 20:39:38 2017 -0800rcu: Export
init_rcu_head()anddestroy_rcu_head()to GPL modulesUse of
init_rcu_head()anddestroy_rcu_head()from modules results in the following build-time error:ERROR: "
init_rcu_head" [drivers/scsi/scsi_mod.ko] undefined!
ERROR: "destroy_rcu_head" [drivers/scsi/scsi_mod.ko] undefined!This commit therefore adds
EXPORT_SYMBOL_GPL()for each to allow them to be used by GPL-licensed kernel modules.Reported-by Bart Van Assche <[email protected]>Reported-by Stephen Rothwell <[email protected]>Signed-off-by Paul E. McKenney <[email protected]>kernel/rcu/update.c +0
-0@@ -422,11 +422,13 @@ void init_rcu_head(struct rcu_head *head) {debug_object_init (head, &rcuhead_debug_descr); }
kernel/rcu/update.c void init_rcu_head(struct rcu_head *head) · line 434
Quoted 10 lines
kernel/rcu/update.c +2
-0+EXPORT_SYMBOL_GPL (init_rcu_head);void destroy_rcu_head (struct rcu_head *head) {debug_object_free (head, &rcuhead_debug_descr); } +EXPORT_SYMBOL_GPL (destroy_rcu_head);static bool rcuhead_is_static_object (void *addr) {
(+linux-scsi)
Hello Paul,
How about changing the commit message into "... fixes a build failure with CONFIG_DEBUG_OBJECTS_RCU_HEAD=y"? Otherwise the above patch looks fine to me and fixes the reported build failure on my setup.
However, what's not clear to me is through which tree this patch should be sent to Linus? Should the above patch be sent as a v4.15-rc fix or should Martin perhaps queue it in his tree for v4.16-rc1?
Thanks,
Bart.
Quoted 3 lines · Bart Van Assche
Quoted 2 lines · Paul E. McKenney
Quoted 1 line · Stephen Rothwell
On Thu, 7 Dec 2017 03:59:30 +0000 Bart Van Assche <[email protected]> wrote:
[ . . . ]
Quoted 40 lines
Quoted 27 lines
commit
cde4691a3a4591e7355295dd62610e3262159002Author: Paul E. McKenney <[email protected]> Date: Wed Dec 6 20:39:38 2017 -0800rcu: Export
init_rcu_head()anddestroy_rcu_head()to GPL modulesUse of
init_rcu_head()anddestroy_rcu_head()from modules results in the following build-time error:ERROR: "
init_rcu_head" [drivers/scsi/scsi_mod.ko] undefined!
ERROR: "destroy_rcu_head" [drivers/scsi/scsi_mod.ko] undefined!This commit therefore adds
EXPORT_SYMBOL_GPL()for each to allow them to be used by GPL-licensed kernel modules.Reported-by Bart Van Assche <[email protected]>Reported-by Stephen Rothwell <[email protected]>Signed-off-by Paul E. McKenney <[email protected]>kernel/rcu/update.c +0
-0@@ -422,11 +422,13 @@ void init_rcu_head(struct rcu_head *head) {debug_object_init (head, &rcuhead_debug_descr); }kernel/rcu/update.c void init_rcu_head(struct rcu_head *head) · line 434
Quoted 10 lines
kernel/rcu/update.c +2
-0+EXPORT_SYMBOL_GPL (init_rcu_head);void destroy_rcu_head (struct rcu_head *head) {debug_object_free (head, &rcuhead_debug_descr); } +EXPORT_SYMBOL_GPL (destroy_rcu_head);static bool rcuhead_is_static_object (void *addr) {(+linux-scsi)
Quoted 5 lines
Hello Paul,
How about changing the commit message into "... fixes a build failure with
CONFIG_DEBUG_OBJECTS_RCU_HEAD=y"? Otherwise the above patch looks fine to me and fixes the reported build failure on my setup.
I have updated it as shown below.
Quoted 3 lines
However, what's not clear to me is through which tree this patch should be sent to Linus? Should the above patch be sent as a v4.15-rc fix or should Martin perhaps queue it in his tree for v4.16-rc1?
I have to defer to you guys on that one. Left to myself, I will just push it into the next merge window (as opposed to using my normal process, which at this point would get it into the one following).
So please let me know how you would like to proceed.
Thanx, Paul
------------------------------------------------------------------------
commit 193dffdf4354f14b4f3369a85128817e5ba74e58
Author: Paul E. McKenney <[email protected]> Date: Wed Dec 6 20:39:38 2017 -0800
rcu: Export init_rcu_head() and destroy_rcu_head() to GPL modules
Use of init_rcu_head() and destroy_rcu_head() from modules results in the following build-time error with CONFIG_DEBUG_OBJECTS_RCU_HEAD=y:
ERROR: "init_rcu_head" [drivers/scsi/scsi_mod.ko] undefined!
ERROR: "destroy_rcu_head" [drivers/scsi/scsi_mod.ko] undefined!
This commit therefore adds EXPORT_SYMBOL_GPL() for each to allow them to be used by GPL-licensed kernel modules.
kernel/rcu/update.c +2 -0
@@ -422,11 +422,13 @@ void init_rcu_head(struct rcu_head *head) {debug_object_init (head, &rcuhead_debug_descr); } +EXPORT_SYMBOL_GPL (init_rcu_head);void destroy_rcu_head (struct rcu_head *head) {debug_object_free (head, &rcuhead_debug_descr); } +EXPORT_SYMBOL_GPL (destroy_rcu_head);static bool rcuhead_is_static_object (void *addr) {
Hi all,
Quoted 11 lines · On Thu, 7 Dec 2017 09:40:38 -0800 "Paul E. McKenney"…
Quoted 3 lines · Bart Van Assche
However, what's not clear to me is through which tree this patch should be sent to Linus? Should the above patch be sent as a v4.15-rc fix or should Martin perhaps queue it in his tree for v4.16-rc1?
I have to defer to you guys on that one. Left to myself, I will just push it into the next merge window (as opposed to using my normal process, which at this point would get it into the one following).
So please let me know how you would like to proceed.
Clearly, it needs to go via Martin's tree as otherwise his tree will not build in some circumstances ... or if it going to cause problems for Paul, then it should be in a separate non-rebasing branch (probably of Paul's tree) that is merged into Pauls main branch and Marin's tree.
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 13 lines · Stephen Rothwell
Hi all,
Quoted 10 lines · On Thu, 7 Dec 2017 09:40:38 -0800 "Paul E. McKenney"…
Quoted 3 lines · Bart Van Assche
However, what's not clear to me is through which tree this patch should be sent to Linus? Should the above patch be sent as a v4.15-rc fix or should Martin perhaps queue it in his tree for v4.16-rc1?
I have to defer to you guys on that one. Left to myself, I will just push it into the next merge window (as opposed to using my normal process, which at this point would get it into the one following).
Quoted 6 lines
Quoted 1 line
So please let me know how you would like to proceed.
Clearly, it needs to go via Martin's tree as otherwise his tree will not build in some circumstances ... or if it going to cause problems for Paul, then it should be in a separate non-rebasing branch (probably of Paul's tree) that is merged into Pauls main branch and Marin's tree.
It is unlikely to cause problems, so please let it go up where convenient.
Just please let me know.
Thanx, Paul
Stephen,
Quoted 10 lines
Quoted 5 lines
I have to defer to you guys on that one. Left to myself, I will just push it into the next merge window (as opposed to using my normal process, which at this point would get it into the one following).
So please let me know how you would like to proceed.
Clearly, it needs to go via Martin's tree as otherwise his tree will not build in some circumstances ... or if it going to cause problems for Paul, then it should be in a separate non-rebasing branch (probably of Paul's tree) that is merged into Pauls main branch and Marin's tree.
I'm perfectly OK with taking it through the SCSI tree. Probably the path of least resistance.
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering
Martin K. Petersen
AppliedQuoted 3 lines
I'm perfectly OK with taking it through the SCSI tree. Probably the path of least resistance.
Applied to 4.16/scsi-queue and rebased so it sits before Bart's patch.
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering
Quoted 5 lines · Martin K. Petersen
Quoted 3 lines
I'm perfectly OK with taking it through the SCSI tree. Probably the path of least resistance.
Applied to 4.16/scsi-queue and rebased so it sits before Bart's patch.
Thank you! I have removed this patch from -rcu.
Thanx, Paul