]> git.baikalelectronics.ru Git - kernel.git/commit
libata: move reset freeze/thaw handling into ata_eh_reset()
authorTejun Heo <htejun@gmail.com>
Sun, 18 May 2008 16:15:07 +0000 (01:15 +0900)
committerJeff Garzik <jgarzik@redhat.com>
Mon, 19 May 2008 21:51:47 +0000 (17:51 -0400)
commitff50f93871f6444b99af4c517fe3b52b5b16dc1c
tree52bff671e5ed5b39056bb4a5c531476c83e9f708
parentcd8cdfbd98b6800f9b7b96b647134eaf341b6c7b
libata: move reset freeze/thaw handling into ata_eh_reset()

Previously reset freeze/thaw handling lived outside of ata_eh_reset()
mainly because the original PMP reset code needed the port frozen
while resetting all the fan-out ports, which is no longer the case.

This patch moves freeze/thaw handling into ata_eh_reset().
@prereset() and @postreset() are now called w/o freezing the port
although @prereset() an be called frozen if the port is frozen prior
to entering ata_eh_reset().

This makes code simpler and will help removing hotplug event related
races.

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