Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1361050 > unrolled thread
| Started by | Eva Rachel Retuya <eraretuya@gmail.com> |
|---|---|
| First post | 2016-03-19 06:20 +0100 |
| Last post | 2016-03-23 09:40 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH v3] iwlwifi: dvm: use alloc_ordered_workqueue() Eva Rachel Retuya <eraretuya@gmail.com> - 2016-03-19 06:20 +0100
Re: [PATCH v3] iwlwifi: dvm: use alloc_ordered_workqueue() "Grumbach, Emmanuel" <emmanuel.grumbach@intel.com> - 2016-03-23 09:40 +0100
| From | Eva Rachel Retuya <eraretuya@gmail.com> |
|---|---|
| Date | 2016-03-19 06:20 +0100 |
| Subject | [PATCH v3] iwlwifi: dvm: use alloc_ordered_workqueue() |
| Message-ID | <rehsR-3wI-1@gated-at.bofh.it> |
Use alloc_ordered_workqueue() to allocate the workqueue instead of
create_singlethread_workqueue() since the latter is deprecated and is scheduled
for removal.
There are work items doing related operations that shouldn't be swapped when
queued in a certain order hence preserve the strict execution ordering of a
single threaded (ST) workqueue by switching to alloc_ordered_workqueue().
WQ_MEM_RECLAIM flag is not needed since the worker is not depended
during memory reclaim.
Signed-off-by: Eva Rachel Retuya <eraretuya@gmail.com>
Acked-by: Tejun Heo <tj@kernel.org>
---
Changes in v3:
* revise commit message about WQ_MEM_RECLAIM
* add 'Acked-by:' from previous feedback
Changes in v2:
* switch from alloc_workqueue() to alloc_ordered_workqueue()
* remove unneeded flags: WQ_MEM_RECLAIM and WQ_HIGHPRI
* update commit message to reflect change
drivers/net/wireless/intel/iwlwifi/dvm/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/wireless/intel/iwlwifi/dvm/main.c b/drivers/net/wireless/intel/iwlwifi/dvm/main.c
index f62c2d7..14396d8 100644
--- a/drivers/net/wireless/intel/iwlwifi/dvm/main.c
+++ b/drivers/net/wireless/intel/iwlwifi/dvm/main.c
@@ -1071,7 +1071,7 @@ static void iwl_bg_restart(struct work_struct *data)
static void iwl_setup_deferred_work(struct iwl_priv *priv)
{
- priv->workqueue = create_singlethread_workqueue(DRV_NAME);
+ priv->workqueue = alloc_ordered_workqueue(DRV_NAME, 0);
INIT_WORK(&priv->restart, iwl_bg_restart);
INIT_WORK(&priv->beacon_update, iwl_bg_beacon_update);
--
1.9.1
[toc] | [next] | [standalone]
| From | "Grumbach, Emmanuel" <emmanuel.grumbach@intel.com> |
|---|---|
| Date | 2016-03-23 09:40 +0100 |
| Message-ID | <rfMuD-KQ-11@gated-at.bofh.it> |
| In reply to | #1361050 |
On 03/19/2016 07:15 AM, Eva Rachel Retuya wrote: > Use alloc_ordered_workqueue() to allocate the workqueue instead of > create_singlethread_workqueue() since the latter is deprecated and is scheduled > for removal. > > There are work items doing related operations that shouldn't be swapped when > queued in a certain order hence preserve the strict execution ordering of a > single threaded (ST) workqueue by switching to alloc_ordered_workqueue(). > > WQ_MEM_RECLAIM flag is not needed since the worker is not depended > during memory reclaim. > > Signed-off-by: Eva Rachel Retuya <eraretuya@gmail.com> > Acked-by: Tejun Heo <tj@kernel.org> > --- Applied - thanks.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web