From: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
To: David Howells <dhowells@redhat.com>
Cc: linux-kernel@vger.kernel.org, linux-afs@lists.infradead.org,
Tejun Heo <tj@kernel.org>
Subject: [PATCH v3 2/4] fs/afs/rxrpc: Remove deprecated create_singlethread_workqueue
Date: Sun, 4 Sep 2016 20:53:42 +0530 [thread overview]
Message-ID: <9555883cbbf8a995e955a6696952e95f1bdd774b.1473002371.git.bhaktipriya96@gmail.com> (raw)
In-Reply-To: <cover.1473002371.git.bhaktipriya96@gmail.com>
The workqueue "afs_async_calls" queues work item
&call->async_work per afs_call. Since there could be multiple calls and since
these calls can be run concurrently, alloc_workqueue has been used to replace
the deprecated create_singlethread_workqueue instance.
The WQ_MEM_RECLAIM flag has been set to ensure forward progress under
memory pressure because the workqueue is being used on a memory reclaim
path.
Since there are fixed number of work items, explicit concurrency
limit is unnecessary here.
Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
---
Changes in v3:
- Updated patch description
fs/afs/rxrpc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/afs/rxrpc.c b/fs/afs/rxrpc.c
index 63cd9f9..4f9e9b3 100644
--- a/fs/afs/rxrpc.c
+++ b/fs/afs/rxrpc.c
@@ -85,7 +85,7 @@ int afs_open_socket(void)
skb_queue_head_init(&afs_incoming_calls);
- afs_async_calls = create_singlethread_workqueue("kafsd");
+ afs_async_calls = alloc_workqueue("kafsd", WQ_MEM_RECLAIM, 0);
if (!afs_async_calls) {
_leave(" = -ENOMEM [wq]");
return -ENOMEM;
--
2.1.4
next prev parent reply other threads:[~2016-09-04 15:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-04 15:21 [PATCH v3 0/4] fs/afs: " Bhaktipriya Shridhar
2016-09-04 15:22 ` [PATCH v3 1/4] fs/afs/vlocation: " Bhaktipriya Shridhar
2016-09-04 15:23 ` Bhaktipriya Shridhar [this message]
2016-09-04 15:24 ` [PATCH v3 3/4] fs/afs/callback: " Bhaktipriya Shridhar
2016-09-04 15:24 ` [PATCH v3 4/4] fs/afs/flock: " Bhaktipriya Shridhar
2016-09-04 21:06 ` [PATCH v3 0/4] fs/afs: " David Howells
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9555883cbbf8a995e955a6696952e95f1bdd774b.1473002371.git.bhaktipriya96@gmail.com \
--to=bhaktipriya96@gmail.com \
--cc=dhowells@redhat.com \
--cc=linux-afs@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tj@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®