]> err.no Git - linux-2.6/commit
libata: reorganize ata_eh_reset() no reset method path
authorTejun Heo <htejun@gmail.com>
Sun, 18 May 2008 16:15:06 +0000 (01:15 +0900)
committerJeff Garzik <jgarzik@redhat.com>
Mon, 19 May 2008 21:51:47 +0000 (17:51 -0400)
commit932648b007de76badc61c1b13d7282288dbe887e
tree3a3c00f6068f530632012ee3a6aaccedbe1158ba
parent0cbf0711a1ebcc4d3aea8e11def684afc2c07ef8
libata: reorganize ata_eh_reset() no reset method path

Reorganize ata_eh_reset() such that @prereset() is called even when no
reset method is available and if block is used instead of goto to skip
actual reset.  This makes no reset case behave better (readiness wait)
and future changes easier.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/libata-eh.c