@@ -319,17 +319,16 @@ static void fcoe_ctlr_announce(struct fcoe_ctlr *fip)
319
319
{
320
320
struct fcoe_fcf * sel ;
321
321
struct fcoe_fcf * fcf ;
322
- unsigned long flags ;
323
322
324
323
mutex_lock (& fip -> ctlr_mutex );
325
- spin_lock_irqsave (& fip -> ctlr_lock , flags );
324
+ spin_lock_bh (& fip -> ctlr_lock );
326
325
327
326
kfree_skb (fip -> flogi_req );
328
327
fip -> flogi_req = NULL ;
329
328
list_for_each_entry (fcf , & fip -> fcfs , list )
330
329
fcf -> flogi_sent = 0 ;
331
330
332
- spin_unlock_irqrestore (& fip -> ctlr_lock , flags );
331
+ spin_unlock_bh (& fip -> ctlr_lock );
333
332
sel = fip -> sel_fcf ;
334
333
335
334
if (sel && ether_addr_equal (sel -> fcf_mac , fip -> dest_addr ))
@@ -700,7 +699,6 @@ int fcoe_ctlr_els_send(struct fcoe_ctlr *fip, struct fc_lport *lport,
700
699
{
701
700
struct fc_frame * fp ;
702
701
struct fc_frame_header * fh ;
703
- unsigned long flags ;
704
702
u16 old_xid ;
705
703
u8 op ;
706
704
u8 mac [ETH_ALEN ];
@@ -734,11 +732,11 @@ int fcoe_ctlr_els_send(struct fcoe_ctlr *fip, struct fc_lport *lport,
734
732
op = FIP_DT_FLOGI ;
735
733
if (fip -> mode == FIP_MODE_VN2VN )
736
734
break ;
737
- spin_lock_irqsave (& fip -> ctlr_lock , flags );
735
+ spin_lock_bh (& fip -> ctlr_lock );
738
736
kfree_skb (fip -> flogi_req );
739
737
fip -> flogi_req = skb ;
740
738
fip -> flogi_req_send = 1 ;
741
- spin_unlock_irqrestore (& fip -> ctlr_lock , flags );
739
+ spin_unlock_bh (& fip -> ctlr_lock );
742
740
schedule_work (& fip -> timer_work );
743
741
return - EINPROGRESS ;
744
742
case ELS_FDISC :
@@ -1707,11 +1705,10 @@ static int fcoe_ctlr_flogi_send_locked(struct fcoe_ctlr *fip)
1707
1705
static int fcoe_ctlr_flogi_retry (struct fcoe_ctlr * fip )
1708
1706
{
1709
1707
struct fcoe_fcf * fcf ;
1710
- unsigned long flags ;
1711
1708
int error ;
1712
1709
1713
1710
mutex_lock (& fip -> ctlr_mutex );
1714
- spin_lock_irqsave (& fip -> ctlr_lock , flags );
1711
+ spin_lock_bh (& fip -> ctlr_lock );
1715
1712
LIBFCOE_FIP_DBG (fip , "re-sending FLOGI - reselect\n" );
1716
1713
fcf = fcoe_ctlr_select (fip );
1717
1714
if (!fcf || fcf -> flogi_sent ) {
@@ -1722,7 +1719,7 @@ static int fcoe_ctlr_flogi_retry(struct fcoe_ctlr *fip)
1722
1719
fcoe_ctlr_solicit (fip , NULL );
1723
1720
error = fcoe_ctlr_flogi_send_locked (fip );
1724
1721
}
1725
- spin_unlock_irqrestore (& fip -> ctlr_lock , flags );
1722
+ spin_unlock_bh (& fip -> ctlr_lock );
1726
1723
mutex_unlock (& fip -> ctlr_mutex );
1727
1724
return error ;
1728
1725
}
@@ -1739,9 +1736,8 @@ static int fcoe_ctlr_flogi_retry(struct fcoe_ctlr *fip)
1739
1736
static void fcoe_ctlr_flogi_send (struct fcoe_ctlr * fip )
1740
1737
{
1741
1738
struct fcoe_fcf * fcf ;
1742
- unsigned long flags ;
1743
1739
1744
- spin_lock_irqsave (& fip -> ctlr_lock , flags );
1740
+ spin_lock_bh (& fip -> ctlr_lock );
1745
1741
fcf = fip -> sel_fcf ;
1746
1742
if (!fcf || !fip -> flogi_req_send )
1747
1743
goto unlock ;
@@ -1768,7 +1764,7 @@ static void fcoe_ctlr_flogi_send(struct fcoe_ctlr *fip)
1768
1764
} else /* XXX */
1769
1765
LIBFCOE_FIP_DBG (fip , "No FCF selected - defer send\n" );
1770
1766
unlock :
1771
- spin_unlock_irqrestore (& fip -> ctlr_lock , flags );
1767
+ spin_unlock_bh (& fip -> ctlr_lock );
1772
1768
}
1773
1769
1774
1770
/**
0 commit comments