From: Tejun Heo <tj@kernel.org>
To: Cornelia Huck <cornelia.huck@de.ibm.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Jens Axboe <jens.axboe@oracle.com>, Greg K-H <greg@kroah.com>
Subject: Re: [PATCH] block: fix block_class iteration locking
Date: Mon, 14 Jul 2008 20:50:57 +0900 [thread overview]
Message-ID: <487B3DA1.7010906@kernel.org> (raw)
In-Reply-To: <20080714134228.1079c6f7@gondolin.boeblingen.de.ibm.com>
Cornelia Huck wrote:
> Greg has some patches sitting in his tree that convert those functions
> to use class_{for_each,find}_device() instead - and that looks like the
> clean solution, especially since the class implementation details will
> be moved into a private structure. One worry though...
Yeah, that sounds nice.
> With your patch, you protect against adding/removing devices to/from
> the class between _start and _stop. This wasn't done previously, and
> won't be done with Greg's patches (which leaves in the
> locking/unlocking of block_class_lock). Not sure if I'm missing
> something here...
That's mostly the point of this patch. It wasn't protected properly
before. It would be best if there's a safe iterator (maybe use klist?).
Thanks.
--
tejun
next prev parent reply other threads:[~2008-07-19 10:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-14 6:06 [PATCH] block: fix block_class iteration locking Tejun Heo
2008-07-14 11:42 ` Cornelia Huck
2008-07-14 11:50 ` Tejun Heo [this message]
2008-07-21 17:34 ` Cornelia Huck
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=487B3DA1.7010906@kernel.org \
--to=tj@kernel.org \
--cc=cornelia.huck@de.ibm.com \
--cc=greg@kroah.com \
--cc=jens.axboe@oracle.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