Skip to contentSkip to conversation

ieee802154: ca8210: Drop spurious WQ_UNBOUND from alloc_ordered_workqueue() call

PATCH In review Tejun Heo 3 participants 3 messages Feb 5, 2024 – Feb 26, 2024

Subsystems (4)
lore
Share & tools
lore

Tejun Heo

author
#0 lore raw

PATCH 1/1 ieee802154: ca8210: Drop spurious WQ_UNBOUND from alloc_ordered_workqueue() call

Workqueue is in the process of cleaning up the distinction between unbound workqueues w/ @nr_active==1 and ordered workqueues. Explicit WQ_UNBOUND isn't needed for alloc_ordered_workqueue() and will trigger a warning in the future. Let's remove it. This doesn't cause any functional changes.

---
 drivers/net/ieee802154/ca8210.c |   10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)
drivers/net/ieee802154/ca8210.c +2 -8
@@ -2857,19 +2857,13 @@ static int ca8210_interrupt_init(struct
  */
 static int ca8210_dev_com_init(struct ca8210_priv *priv)
 {
-	priv->mlme_workqueue = alloc_ordered_workqueue(
-		"MLME work queue",
-		WQ_UNBOUND
-	);
+	priv->mlme_workqueue = alloc_ordered_workqueue("MLME work queue", 0);
 	if (!priv->mlme_workqueue) {
 		dev_crit(&priv->spi->dev, "alloc of mlme_workqueue failed!\n");
 		return -ENOMEM;
 	}
 
-	priv->irq_workqueue = alloc_ordered_workqueue(
-		"ca8210 irq worker",
-		WQ_UNBOUND
-	);
+	priv->irq_workqueue = alloc_ordered_workqueue("ca8210 irq worker", 0);
 	if (!priv->irq_workqueue) {
 		dev_crit(&priv->spi->dev, "alloc of irq_workqueue failed!\n");
 		destroy_workqueue(priv->mlme_workqueue);
maintainer Reviewed-by on v1 1/1
#1 lore raw

Hi Tejun,

[email protected] wrote on Mon, 5 Feb 2024 13:53:54 -1000:

Quoted 5 lines

Workqueue is in the process of cleaning up the distinction between unbound workqueues w/ @nr_active==1 and ordered workqueues. Explicit WQ_UNBOUND isn't needed for alloc_ordered_workqueue() and will trigger a warning in the future. Let's remove it. This doesn't cause any functional changes.

Looks okay to me.

Thanks,
Miquèl

maintainer
#2 lore raw
In reply to Tejun Heo

Hello,

Quoted 24 lines · Tejun Heo

Workqueue is in the process of cleaning up the distinction between unbound workqueues w/ @nr_active==1 and ordered workqueues. Explicit WQ_UNBOUND isn't needed for alloc_ordered_workqueue() and will trigger a warning in the future. Let's remove it. This doesn't cause any functional changes.

---
  drivers/net/ieee802154/ca8210.c |   10 ++--------
  1 file changed, 2 insertions(+), 8 deletions(-)
drivers/net/ieee802154/ca8210.c +1 -4
@@ -2857,19 +2857,13 @@ static int ca8210_interrupt_init(struct
   */
  static int ca8210_dev_com_init(struct ca8210_priv *priv)
  {
-	priv->mlme_workqueue = alloc_ordered_workqueue(
-		"MLME work queue",
-		WQ_UNBOUND
-	);
+	priv->mlme_workqueue = alloc_ordered_workqueue("MLME work queue", 0);
  	if (!priv->mlme_workqueue) {
  		dev_crit(&priv->spi->dev, "alloc of mlme_workqueue failed!\n");
  		return -ENOMEM;

drivers/net/ieee802154/ca8210.c static int ca8210_interrupt_init(struct · line 2869

Quoted 10 lines
drivers/net/ieee802154/ca8210.c +1 -4
  	}
 
-	priv->irq_workqueue = alloc_ordered_workqueue(
-		"ca8210 irq worker",
-		WQ_UNBOUND
-	);
+	priv->irq_workqueue = alloc_ordered_workqueue("ca8210 irq worker", 0);
  	if (!priv->irq_workqueue) {
  		dev_crit(&priv->spi->dev, "alloc of irq_workqueue failed!\n");
  		destroy_workqueue(priv->mlme_workqueue);

This patch has been applied to the wpan-next tree and will be part of the next pull request to net-next. Thanks!

regards
Stefan Schmidt