From: Christoph Hellwig <hch@infradead.org>
To: Ben Myers <bpm@sgi.com>, Tejun Heo <tj@kernel.org>
Cc: xfs@oss.sgi.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/5] xfs: use per-filesystem I/O completion workqueues
Date: Mon, 14 Nov 2011 05:34:10 -0500 [thread overview]
Message-ID: <20111114103410.GD31043@infradead.org> (raw)
In-Reply-To: <20111110174242.GZ20464@sgi.com>
On Thu, Nov 10, 2011 at 11:42:42AM -0600, Ben Myers wrote:
> > +STATIC int
> > +xfs_init_mount_workqueues(
> > + struct xfs_mount *mp)
> > +{
> > +#define XFS_WQ_NAME_LEN 512
> > + char name[XFS_WQ_NAME_LEN];
> > +
> > + snprintf(name, XFS_WQ_NAME_LEN, "xfs-data/%s", mp->m_fsname);
> > + mp->m_data_workqueue = alloc_workqueue(name, WQ_MEM_RECLAIM, 1);
> > + if (!mp->m_data_workqueue)
> > + goto out;
>
> Looks to me like alloc_workqueue holds on to that name pointer in
> wq->name... won't overwriting the name below be a problem?
It applies deep magic to make sure a pattern like mine is fine for
the lockdep lock name, but just uses it directly for the workqueue name.
Oddly enough the names seem to display correctly on my test systems
anyway.
Tejun, any chance to change alloc_workqueue to use the string pasting
trick also for the normal workqueue name, or even better add a varargs
version of alloc_workqueue?
next parent reply other threads:[~2011-11-14 10:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20111108085614.478431403@bombadil.infradead.org>
[not found] ` <20111108085846.291838677@bombadil.infradead.org>
[not found] ` <20111108231118.GP5534@dastard>
[not found] ` <20111109075847.GA20604@infradead.org>
[not found] ` <20111110174242.GZ20464@sgi.com>
2011-11-14 10:34 ` Christoph Hellwig [this message]
2011-11-14 18:13 ` [PATCH 2/5] xfs: use per-filesystem I/O completion workqueues Tejun Heo
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=20111114103410.GD31043@infradead.org \
--to=hch@infradead.org \
--cc=bpm@sgi.com \
--cc=linux-kernel@vger.kernel.org \
--cc=tj@kernel.org \
--cc=xfs@oss.sgi.com \
/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