Netdev List
 help / color / mirror / Atom feed
* [PATCH net 0/3] bnxt_en: Fix RTNL lock usage in bnxt_sp_task().
@ 2017-01-25  7:55 Michael Chan
  2017-01-25  7:55 ` [PATCH net 1/3] bnxt_en: Fix bnxt_reset() in the slow path task Michael Chan
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Michael Chan @ 2017-01-25  7:55 UTC (permalink / raw)
  To: davem; +Cc: netdev

There are 2 function calls from bnxt_sp_task() that have buggy RTNL
usage.  These 2 functions take RTNL lock under some conditions, but
some callers (such as open, ethtool) have already taken RTNL.  These
3 patches fix the issue by making it clear that callers must take
RTNL.  If the caller is bnxt_sp_task() which does not automatically
take RTNL, we add a common scheme for bnxt_sp_task() to call these
functions properly under RTNL.


Michael Chan (3):
  bnxt_en: Fix bnxt_reset() in the slow path task.
  bnxt_en: Fix RTNL lock usage on bnxt_update_link().
  bnxt_en: Fix RTNL lock usage on bnxt_get_port_module_status().

 drivers/net/ethernet/broadcom/bnxt/bnxt.c | 78 ++++++++++++++++++-------------
 1 file changed, 46 insertions(+), 32 deletions(-)

-- 
1.8.3.1

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-01-25 18:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-25  7:55 [PATCH net 0/3] bnxt_en: Fix RTNL lock usage in bnxt_sp_task() Michael Chan
2017-01-25  7:55 ` [PATCH net 1/3] bnxt_en: Fix bnxt_reset() in the slow path task Michael Chan
2017-01-25  7:55 ` [PATCH net 2/3] bnxt_en: Fix RTNL lock usage on bnxt_update_link() Michael Chan
2017-01-25  7:55 ` [PATCH net 3/3] bnxt_en: Fix RTNL lock usage on bnxt_get_port_module_status() Michael Chan
2017-01-25 18:27 ` [PATCH net 0/3] bnxt_en: Fix RTNL lock usage in bnxt_sp_task() David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox