lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <tip-fd8e688b0e8cc0c0a8ca18acb69cb8397ed62eec@git.kernel.org>
Date:   Tue, 4 Dec 2018 14:38:22 -0800
From:   "tip-bot for Paul E. McKenney" <tipbot@...or.com>
To:     linux-tip-commits@...r.kernel.org
Cc:     hpa@...or.com, netdev@...r.kernel.org, davem@...emloft.net,
        tglx@...utronix.de, romieu@...zoreil.com, paulmck@...ux.ibm.com,
        mingo@...nel.org
Subject: [tip:core/rcu] ethernet/sis: Replace synchronize_sched() with
 synchronize_rcu()

Commit-ID:  fd8e688b0e8cc0c0a8ca18acb69cb8397ed62eec
Gitweb:     https://git.kernel.org/tip/fd8e688b0e8cc0c0a8ca18acb69cb8397ed62eec
Author:     Paul E. McKenney <paulmck@...ux.ibm.com>
AuthorDate: Mon, 5 Nov 2018 17:05:08 -0800
Committer:  Paul E. McKenney <paulmck@...ux.ibm.com>
CommitDate: Tue, 27 Nov 2018 09:21:36 -0800

ethernet/sis: Replace synchronize_sched() with synchronize_rcu()

Now that synchronize_rcu() waits for preempt-disable regions of code
as well as RCU read-side critical sections, synchronize_sched() can be
replaced by synchronize_rcu().  This commit therefore makes this change.

Signed-off-by: Paul E. McKenney <paulmck@...ux.ibm.com>
Cc: Francois Romieu <romieu@...zoreil.com>
Cc: "David S. Miller" <davem@...emloft.net>
Cc: <netdev@...r.kernel.org>
---
 drivers/net/ethernet/sis/sis190.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/sis/sis190.c b/drivers/net/ethernet/sis/sis190.c
index c2c50522b96d..808cf9816673 100644
--- a/drivers/net/ethernet/sis/sis190.c
+++ b/drivers/net/ethernet/sis/sis190.c
@@ -1142,7 +1142,7 @@ static void sis190_down(struct net_device *dev)
 		if (!poll_locked)
 			poll_locked++;
 
-		synchronize_sched();
+		synchronize_rcu();
 
 	} while (SIS_R32(IntrMask));
 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ