From: Tejun Heo <tj@kernel.org>
To: David Herrmann <dh.herrmann@googlemail.com>
Cc: fuse-devel@lists.sourceforge.net,
Miklos Szeredi <miklos@szeredi.hu>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 2/2] cuse: do not register multiple devices with identical names
Date: Sun, 18 Nov 2012 06:30:02 -0800 [thread overview]
Message-ID: <20121118143002.GH7306@mtj.dyndns.org> (raw)
In-Reply-To: <1353152748-6867-2-git-send-email-dh.herrmann@googlemail.com>
On Sat, Nov 17, 2012 at 12:45:48PM +0100, David Herrmann wrote:
> Sysfs doesn't allow two devices with the same name, but we register a
> sysfs entry for each cuse device without checking for name collisions.
> This extends the registration to first check whether the name was already
> registered.
>
> To avoid race-conditions between the name-check and linking the device, we
> need to protect the whole registration with a mutex.
>
> Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Acked-by: Tejun Heo <tj@kernel.org>
Thanks!
--
tejun
next prev parent reply other threads:[~2012-11-18 14:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-17 11:45 [PATCH v3 1/2] cuse: use mutex as registration lock instead of spinlocks David Herrmann
2012-11-17 11:45 ` [PATCH v3 2/2] cuse: do not register multiple devices with identical names David Herrmann
2012-11-18 14:30 ` Tejun Heo [this message]
2012-11-19 7:18 ` Miklos Szeredi
2012-11-18 14:29 ` [PATCH v3 1/2] cuse: use mutex as registration lock instead of spinlocks 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=20121118143002.GH7306@mtj.dyndns.org \
--to=tj@kernel.org \
--cc=dh.herrmann@googlemail.com \
--cc=fuse-devel@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=miklos@szeredi.hu \
/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