projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3f99d3
)
drivers: ata: pata_arasan_cf: use the same name for the same lock
author
Iago Abal
<mail@iagoabal.eu>
Mon, 27 Jun 2016 07:51:42 +0000
(09:51 +0200)
committer
Tejun Heo
<tj@kernel.org>
Tue, 28 Jun 2016 16:49:40 +0000
(12:49 -0400)
Note that `&acdev->host->lock' and `qc->ap->lock' denote the same lock, and it's
particularly confusing to spin_lock on the former but spin_unlock on the latter.
Signed-off-by: Iago Abal <mail@iagoabal.eu>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/pata_arasan_cf.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/ata/pata_arasan_cf.c
b/drivers/ata/pata_arasan_cf.c
index 80fe0f6fed2900865a0e3709b5ec7164ea91477b..b4d54771c9fe0ab48877b8baaf2c81aba9991730 100644
(file)
--- a/
drivers/ata/pata_arasan_cf.c
+++ b/
drivers/ata/pata_arasan_cf.c
@@
-565,7
+565,7
@@
chan_request_fail:
qc->ap->hsm_task_state = HSM_ST_ERR;
cf_ctrl_reset(acdev);
- spin_unlock_irqrestore(
qc->ap
->lock, flags);
+ spin_unlock_irqrestore(
&acdev->host
->lock, flags);
sff_intr:
dma_complete(acdev);
}