From: Jeff Layton <jlayton@poochiereds.net>
To: Daniel Wagner <daniel.wagner@bmw-carit.de>
Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org,
Alexander Viro <viro@zeniv.linux.org.uk>,
"J. Bruce Fields" <bfields@fieldses.org>,
Andi Kleen <andi@firstfloor.org>
Subject: Re: [PATCH v3 0/2] Use blocked_lock_lock only to protect blocked_hash
Date: Sat, 7 Mar 2015 09:09:27 -0500 [thread overview]
Message-ID: <20150307090927.3a37c201@tlielax.poochiereds.net> (raw)
In-Reply-To: <20150307090041.16fbf4f8@tlielax.poochiereds.net>
On Sat, 7 Mar 2015 09:00:41 -0500
Jeff Layton <jlayton@poochiereds.net> wrote:
> On Fri, 6 Mar 2015 08:53:30 +0100
> Daniel Wagner <daniel.wagner@bmw-carit.de> wrote:
>
> > Hi,
> >
> > Finally, I got a bigger machine and did a quick test round. I expected
> > to see some improvements but the resutls do not show any real gain. So
> > they are merely refactoring patches.
> >
>
> Ok, in that case is there any point in merging these? I'm all for
> breaking up global locks when it makes sense, but if you can't
> demonstrate a clear benefit then I'm less inclined to take the churn.
>
> Perhaps we should wait to see if a benefit emerges when/if you convert
> the lglock code to use normal spinlocks (like Andi suggested)? That
> seems like a rather simple conversion, and I don't think it's
> "cheating" in any sense of the word.
>
> I do however wonder why Nick used arch_spinlock_t there when he wrote
> the lglock code instead of normal spinlocks. Was it simply memory usage
> considerations or something else?
>
Hmm...to answer my own question. The (old) LWN article here seems to
suggest that he did it that way to avoid preemption:
http://lwn.net/Articles/401738/
I don't think we need to avoid being preempted in the file-locking
code, but I'm not sure about stop_machine.c. Is that necessary there?
The comment in queue_stop_cpus_work seems to indicate that it may be.
--
Jeff Layton <jlayton@poochiereds.net>
next prev parent reply other threads:[~2015-03-07 14:09 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-06 7:53 Daniel Wagner
2015-03-06 7:53 ` [PATCH v3 1/2] locks: Split insert/delete block functions into flock/posix parts Daniel Wagner
2015-03-06 7:53 ` [PATCH v3 2/2] locks: Use blocked_lock_lock only to protect blocked_hash Daniel Wagner
2015-03-07 14:00 ` [PATCH v3 0/2] " Jeff Layton
2015-03-07 14:09 ` Jeff Layton [this message]
2015-03-10 8:20 ` Daniel Wagner
2015-03-14 12:40 ` Jeff Layton
2015-03-26 10:11 ` Daniel Wagner
2015-03-26 13:17 ` Jeff Layton
2015-03-26 13:55 ` Daniel Wagner
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=20150307090927.3a37c201@tlielax.poochiereds.net \
--to=jlayton@poochiereds.net \
--cc=andi@firstfloor.org \
--cc=bfields@fieldses.org \
--cc=daniel.wagner@bmw-carit.de \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=viro@zeniv.linux.org.uk \
/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®