Re: [PATCH] block: fix block_class iteration locking

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Cornelia Huck
Date: Monday, July 14, 2008 - 4:42 am

On Mon, 14 Jul 2008 15:06:08 +0900,
Tejun Heo <tj@kernel.org> 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...



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...
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] block: fix block_class iteration locking, Tejun Heo, (Sun Jul 13, 11:06 pm)
Re: [PATCH] block: fix block_class iteration locking, Cornelia Huck, (Mon Jul 14, 4:42 am)
Re: [PATCH] block: fix block_class iteration locking, Cornelia Huck, (Mon Jul 21, 10:34 am)