Bartlomiej Zolnierkiewicz 2a2ca6a961 ide: replace the global ide_lock spinlock by per-hwgroup spinlocks (v2)
Now that (almost) all host drivers have been fixed not to abuse ide_lock
and core code usage of ide_lock has been sanitized we may safely replace
ide_lock by per-hwgroup locks.

This patch is partially based on earlier patch from Ravikiran G Thirumalai.

While at it:
- don't use deprecated HWIF() and HWGROUP() macros
- update locking documentation in ide.h

v2:
Add missing spin_lock_init(&hwgroup->lock).  (Noticed by Elias Oltmanns)

Cc: Vaibhav V. Nivargi <vaibhav.nivargi@gmail.com>
Cc: Alok N. Kataria <alokk@calsoftinc.com>
Cc: Shai Fultheim <shai@scalex86.org>
Signed-off-by: Ravikiran Thirumalai <kiran@scalex86.org>
Cc: Elias Oltmanns <eo@nebensachen.de>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
2008-12-29 20:27:31 +01:00
..
2008-12-02 20:40:04 +01:00
2008-11-02 21:40:08 +01:00
2008-11-30 10:03:36 -08:00
2008-11-09 21:35:36 +01:00
2008-11-02 21:40:08 +01:00
2008-11-02 21:40:10 +01:00
2008-10-21 07:48:27 -04:00
2008-11-02 21:40:08 +01:00
2008-11-02 21:40:08 +01:00
2008-11-02 21:40:08 +01:00
2008-10-26 09:35:05 -07:00
2008-11-02 21:40:08 +01:00
2008-11-02 21:40:08 +01:00