workqueue: avoid using deprecated functions
The network merge brought in a few users of functions that got deprecated by the workqueue cleanups: the 'system_nrt_wq' is now the same as the regular system_wq, since all workqueues are now non- reentrant. Similarly, remove one use of flush_work_sync() - the regular flush_work() has become synchronous, and the "_sync()" version is thus deprecated as being superfluous. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
@@ -181,7 +181,7 @@ static void nfc_llcp_symm_timer(unsigned long data)
|
||||
|
||||
pr_err("SYMM timeout\n");
|
||||
|
||||
queue_work(system_nrt_wq, &local->timeout_work);
|
||||
schedule_work(&local->timeout_work);
|
||||
}
|
||||
|
||||
struct nfc_llcp_local *nfc_llcp_find_local(struct nfc_dev *dev)
|
||||
@@ -1101,7 +1101,7 @@ static void nfc_llcp_rx_work(struct work_struct *work)
|
||||
|
||||
}
|
||||
|
||||
queue_work(system_nrt_wq, &local->tx_work);
|
||||
schedule_work(&local->tx_work);
|
||||
kfree_skb(local->rx_pending);
|
||||
local->rx_pending = NULL;
|
||||
|
||||
@@ -1120,7 +1120,7 @@ void nfc_llcp_recv(void *data, struct sk_buff *skb, int err)
|
||||
|
||||
local->rx_pending = skb_get(skb);
|
||||
del_timer(&local->link_timer);
|
||||
queue_work(system_nrt_wq, &local->rx_work);
|
||||
schedule_work(&local->rx_work);
|
||||
|
||||
return;
|
||||
}
|
||||
@@ -1135,7 +1135,7 @@ int nfc_llcp_data_received(struct nfc_dev *dev, struct sk_buff *skb)
|
||||
|
||||
local->rx_pending = skb_get(skb);
|
||||
del_timer(&local->link_timer);
|
||||
queue_work(system_nrt_wq, &local->rx_work);
|
||||
schedule_work(&local->rx_work);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -1170,7 +1170,7 @@ void nfc_llcp_mac_is_up(struct nfc_dev *dev, u32 target_idx,
|
||||
if (rf_mode == NFC_RF_INITIATOR) {
|
||||
pr_debug("Queueing Tx work\n");
|
||||
|
||||
queue_work(system_nrt_wq, &local->tx_work);
|
||||
schedule_work(&local->tx_work);
|
||||
} else {
|
||||
mod_timer(&local->link_timer,
|
||||
jiffies + msecs_to_jiffies(local->remote_lto));
|
||||
|
Reference in New Issue
Block a user