Re: [PATCH 1/3][-mm] add class_reclassify macro

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Dave Young <hidave.darkstar@...>
Cc: Greg KH <greg@...>, <matthew@...>, <kay.sievers@...>, <linux-kernel@...>, <linux-scsi@...>
Date: Tuesday, May 27, 2008 - 2:59 am

On Tue, 27 May 2008 14:42:51 +0800 "Dave Young" <hidave.darkstar@gmail.com> wrote:


If that semaphore is being used as a mutex then we should convert it to
a mutex (dammit).

Leaving it implemented as a semphore is not the proper way of
suppressing the lockdep warnings.  It would be better to convert it to
a mutex then add suitable (and suitably commented) open-coded lockdep
annotations to suppress the runtime warnings.

And afaik that's pretty much what your patch did, except you added that
unpopular macro.  If instead of the macro we were to convert that patch
to add open-coded lockdep annotation, what problems remain?

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

Messages in current thread:
[PATCH 1/3][-mm] add class_reclassify macro, Dave Young, (Tue May 20, 5:55 am)
Re: [PATCH 1/3][-mm] add class_reclassify macro, Andrew Morton, (Tue May 20, 6:02 am)
Re: [PATCH 1/3][-mm] add class_reclassify macro, Greg KH, (Tue May 20, 1:21 pm)
Re: [PATCH 1/3][-mm] add class_reclassify macro, Dave Young, (Tue May 27, 2:42 am)
Re: [PATCH 1/3][-mm] add class_reclassify macro, Andrew Morton, (Tue May 27, 2:59 am)
Re: [PATCH 1/3][-mm] add class_reclassify macro, Matthew Wilcox, (Wed May 28, 11:48 am)
Re: [PATCH 1/3][-mm] add class_reclassify macro, Greg KH, (Wed May 28, 12:06 pm)
Re: [PATCH 1/3][-mm] add class_reclassify macro, Greg KH, (Wed May 28, 12:28 pm)
Re: [PATCH 1/3][-mm] add class_reclassify macro, Dave Young, (Tue May 27, 3:31 am)
Re: [PATCH 1/3][-mm] add class_reclassify macro, Matthew Wilcox, (Tue May 20, 7:36 am)
Re: [PATCH 1/3][-mm] add class_reclassify macro, Dave Young, (Tue May 20, 7:05 am)
Re: [PATCH 1/3][-mm] add class_reclassify macro, Andrew Morton, (Tue May 20, 1:30 pm)
Re: [PATCH 1/3][-mm] add class_reclassify macro, Matthew Wilcox, (Tue May 20, 1:36 pm)
Re: [PATCH 1/3][-mm] add class_reclassify macro, Andrew Morton, (Tue May 20, 3:23 pm)
Re: [PATCH 1/3][-mm] add class_reclassify macro, Dave Young, (Tue May 20, 10:05 pm)