Re: [PATCH][-mm] reclassify sg_sysfs_class for lockdep

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: James Bottomley
Date: Wednesday, May 28, 2008 - 8:25 pm

On Thu, 2008-05-29 at 08:45 +0800, Dave Young wrote:

Yes, that was nice of them ...


Hardly ... the fact that it showed up in two different cases indicated
the problem to be more generic.

The root cause of the problem was that mutexes are part of the lockdep
infrastructure whereas semaphores aren't and the dynamic initialisation
of mutexes becomes a lockdep problem unless they're keyed and
initiallised correctly. If you want to do more semaphore->mutex
conversions, it would really be useful for you to understand what was
done and why it was necessary ... because it's going to become necessary
again in others of them.

James


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH][-mm] reclassify sg_sysfs_class for lockdep, Dave Young, (Tue May 27, 3:10 am)
Re: [PATCH][-mm] reclassify sg_sysfs_class for lockdep, James Bottomley, (Wed May 28, 7:40 am)
Re: [PATCH][-mm] reclassify sg_sysfs_class for lockdep, Matthew Wilcox, (Wed May 28, 7:49 am)
Re: [PATCH][-mm] reclassify sg_sysfs_class for lockdep, Andrew Morton, (Wed May 28, 12:18 pm)
Re: [PATCH][-mm] reclassify sg_sysfs_class for lockdep, James Bottomley, (Wed May 28, 8:25 pm)