From: David Howells <dhowells@redhat.com>
To: Artem Savkov <asavkov@redhat.com>
Cc: dhowells@redhat.com, linux-cachefs@redhat.com,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Use proper lock in fscache_objlist_config.
Date: Tue, 04 Oct 2016 16:43:31 +0100 [thread overview]
Message-ID: <7737.1475595811@warthog.procyon.org.uk> (raw)
In-Reply-To: <1475588310-10910-1-git-send-email-asavkov@redhat.com>
Artem Savkov <asavkov@redhat.com> wrote:
> fscache_objlist_config doesn't hold rkey->sem when calling user_key_payload,
> that can result in a "suspicious RCU usage" warning. It does hold
> rcu_read_lock, so it either needs to use unprotected rcu_dereference,
> or take rkey->sem instead of rcu_read_lock.
It shouldn't take key->sem. The RCU lock should be necessary as
user_key_payload() wraps a call to rcu_dereference().
Did you encounter a lockdep report or did you visually inspect this?
David
next prev parent reply other threads:[~2016-10-04 15:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-04 13:38 Artem Savkov
2016-10-04 15:43 ` David Howells [this message]
2016-10-04 15:54 ` Artem Savkov
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=7737.1475595811@warthog.procyon.org.uk \
--to=dhowells@redhat.com \
--cc=asavkov@redhat.com \
--cc=linux-cachefs@redhat.com \
--cc=linux-kernel@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
Powered by JetHome