aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-park.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-01-02 10:12:50 -0500
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-01-02 10:12:50 -0500
commit631de3708d595d153e8a510a3608689290f4c0ed (patch)
treedbecf12cccac76e89cf1908f80b4f515cada731e /drivers/ide/ide-park.c
parentb2cfb05a701809abee591265a198afa029d68bff (diff)
ide: add ide_[un]lock_hwgroup() helpers
Add ide_[un]lock_hwgroup() inline helpers for obtaining exclusive access to the given hwgroup and update the core code accordingly. [ This change besides making code saner results in more efficient use of ide_{get,release}_lock(). ] Cc: Michael Schmitz <schmitz@biophys.uni-duesseldorf.de> Cc: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Elias Oltmanns <eo@nebensachen.de> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-park.c')
-rw-r--r--drivers/ide/ide-park.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/ide-park.c b/drivers/ide/ide-park.c
index 63d01c55f865..44c6787f8aeb 100644
--- a/drivers/ide/ide-park.c
+++ b/drivers/ide/ide-park.c
@@ -22,7 +22,7 @@ static void issue_park_cmd(ide_drive_t *drive, unsigned long timeout)
22 if (reset_timer && hwgroup->sleeping && 22 if (reset_timer && hwgroup->sleeping &&
23 del_timer(&hwgroup->timer)) { 23 del_timer(&hwgroup->timer)) {
24 hwgroup->sleeping = 0; 24 hwgroup->sleeping = 0;
25 hwgroup->busy = 0; 25 ide_unlock_hwgroup(hwgroup);
26 blk_start_queueing(q); 26 blk_start_queueing(q);
27 } 27 }
28 spin_unlock_irq(&hwgroup->lock); 28 spin_unlock_irq(&hwgroup->lock);