From cbca6ada820a74bb0832cac5c352776d9e56f9e6 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sat, 9 Mar 2019 23:05:17 +0000 Subject: [PATCH] fcst: Add an rcu_barrier() call fcst uses call_rcu() hence rcu_barrier() must be called before module unloading finishes. Fixes: 6023f1ad34c3 ("This patch adds a new target module for SCST and libfc that accepts FCP requests from libfc HBAs running Fibre Channel over Ethernet (FCoE) and passes them to SCST.") # v3.0.0 (r1514). git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8019 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- fcst/ft_scst.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fcst/ft_scst.c b/fcst/ft_scst.c index 96e44a724..d5ff06a1c 100644 --- a/fcst/ft_scst.c +++ b/fcst/ft_scst.c @@ -72,6 +72,8 @@ static int __init ft_module_init(void) static void __exit ft_module_exit(void) { + rcu_barrier(); + blocking_notifier_chain_unregister(&fc_lport_notifier_head, &ft_notifier); fc_fc4_deregister_provider(FC_TYPE_FCP, &ft_prov);