From: "Darrick J. Wong" <darrick.wong@oracle.com>
To: Christoph Hellwig <hch@infradead.org>
Cc: linux-xfs@vger.kernel.org
Subject: Re: [PATCH 1/3] xfs: implement per-inode writeback completion queues
Date: Tue, 23 Apr 2019 08:29:30 -0700 [thread overview]
Message-ID: <20190423152930.GH4676@magnolia> (raw)
In-Reply-To: <20190423063421.GA6788@infradead.org>
On Mon, Apr 22, 2019 at 11:34:21PM -0700, Christoph Hellwig wrote:
> I'm a little late to the game, sorry..
>
> But:
>
> > +
> > + spin_lock_irqsave(&ip->i_iodone_lock, flags);
> > + list_replace_init(&ip->i_iodone_list, &completion_list);
> > + spin_unlock_irqrestore(&ip->i_iodone_lock, flags);
>
> I really don't like this new per-inode lock, and the irq disabling at
> all. Especially as the pattern perfectly fits the lockless lists (llists).
> Can you check if these work here?
They certainly look promising, though the singly-linked list nature
means it can't be a direct replacement for xfs_ioend.io_list because we
still need to be able to sort and merge completions. However, adding
another pointer to xfs_ioend won't change the objects per slab ratio, so
avoiding the spinlock heartburn might be worth it...
--D
next prev parent reply other threads:[~2019-04-23 15:29 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-15 2:07 [PATCH v2 0/3] xfs: merged io completions Darrick J. Wong
2019-04-15 2:07 ` [PATCH 1/3] xfs: implement per-inode writeback completion queues Darrick J. Wong
2019-04-15 14:49 ` Brian Foster
2019-04-15 15:53 ` Darrick J. Wong
2019-04-15 16:13 ` Brian Foster
2019-04-15 17:09 ` Darrick J. Wong
2019-04-15 17:31 ` Brian Foster
2019-04-15 18:00 ` Darrick J. Wong
2019-04-15 18:13 ` Brian Foster
2019-04-15 19:27 ` Darrick J. Wong
2019-04-15 16:13 ` [PATCH v2 " Darrick J. Wong
2019-04-15 18:13 ` Brian Foster
2019-04-23 6:34 ` [PATCH " Christoph Hellwig
2019-04-23 15:29 ` Darrick J. Wong [this message]
2019-04-15 2:07 ` [PATCH 2/3] xfs: remove unused m_data_workqueue Darrick J. Wong
2019-04-15 14:49 ` Brian Foster
2019-04-15 2:08 ` [PATCH 3/3] xfs: merge adjacent io completions of the same type Darrick J. Wong
2019-04-15 14:49 ` Brian Foster
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=20190423152930.GH4676@magnolia \
--to=darrick.wong@oracle.com \
--cc=hch@infradead.org \
--cc=linux-xfs@vger.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