BAD PATCH: IDE: remove rwsem use from ide-proc core

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Linux Kernel Mailing List <linux-kernel@...>
Cc: <torvalds@...>
Date: Friday, April 27, 2007 - 5:43 pm

> -	down_read(&dev->bus->subsys.rwsem);

The semaphore is used to ensure dev->driver doesn't change under us. This
patch appears to remove the neccessary locking without replacing it with
anything viable. A local lock would do but the simple removal appears to
be unsafe.



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

Messages in current thread:
BAD PATCH: IDE: remove rwsem use from ide-proc core, Alan Cox, (Fri Apr 27, 5:43 pm)