* re: fjes: Introduce spinlock for rx_status
@ 2016-04-19 9:51 Dan Carpenter
0 siblings, 0 replies; only message in thread
From: Dan Carpenter @ 2016-04-19 9:51 UTC (permalink / raw)
To: kernel-janitors
Hello Taku Izumi,
The patch bd5a256991f9: "fjes: Introduce spinlock for rx_status" from
Apr 15, 2016, leads to the following static checker warning:
drivers/net/fjes/fjes_main.c:827 fjes_change_mtu()
error: double lock 'spin_lock:&hw->rx_status_lock'
drivers/net/fjes/fjes_main.c
822 spin_lock_irqsave(&hw->rx_status_lock, flags);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Locked.
823 for (epidx = 0; epidx < hw->max_epid; epidx++) {
824 if (epidx = hw->my_epid)
825 continue;
826
827 spin_lock_irqsave(&hw->rx_status_lock, flags);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Deadlocked.
828 fjes_hw_setup_epbuf(&hw->ep_shm_info[epidx].tx,
829 netdev->dev_addr,
830 netdev->mtu);
831
832 hw->ep_shm_info[epidx].tx.info->v1i.rx_status | 833 FJES_RX_MTU_CHANGING_DONE;
834 spin_unlock_irqrestore(&hw->rx_status_lock, flags);
835 }
836
837 netif_tx_wake_all_queues(netdev);
838 netif_carrier_on(netdev);
839 napi_enable(&adapter->napi);
840 napi_schedule(&adapter->napi);
841 }
regards,
dan carpenter
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-04-19 9:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-19 9:51 fjes: Introduce spinlock for rx_status Dan Carpenter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox