]> Git Repo - linux.git/commit - drivers/ide/ide-park.c
ide: replace the global ide_lock spinlock by per-hwgroup spinlocks (v2)
authorBartlomiej Zolnierkiewicz <[email protected]>
Mon, 29 Dec 2008 19:27:31 +0000 (20:27 +0100)
committerBartlomiej Zolnierkiewicz <[email protected]>
Mon, 29 Dec 2008 19:27:31 +0000 (20:27 +0100)
commit2a2ca6a96194c4744a2adeefbc09ce881f3c5abe
tree50b43d823d4a589fbfb8f8751278d6101cd3ecf3
parent6ea52226ca131a99bb619bd56fbeee566ea5a966
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 <[email protected]>
Cc: Alok N. Kataria <[email protected]>
Cc: Shai Fultheim <[email protected]>
Signed-off-by: Ravikiran Thirumalai <[email protected]>
Cc: Elias Oltmanns <[email protected]>
Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>
drivers/ide/ide-io.c
drivers/ide/ide-iops.c
drivers/ide/ide-park.c
drivers/ide/ide-probe.c
drivers/ide/ide.c
drivers/ide/umc8672.c
drivers/scsi/ide-scsi.c
include/linux/ide.h
This page took 0.058508 seconds and 4 git commands to generate.