libata: fix handling of port actions in per-dev action mask
authorTejun Heo <htejun@gmail.com>
Thu, 18 Jan 2007 08:22:18 +0000 (17:22 +0900)
committerJeff Garzik <jeff@garzik.org>
Sat, 20 Jan 2007 00:22:45 +0000 (19:22 -0500)
commit79a55b72a1996f77e9d23c7a5282e5839d45beb3
tree9b1a4633b6810b6e28f7dd409f9fd47444f053f8
parent501e0c500217e38276d61445ee0839b3f2c66d05
libata: fix handling of port actions in per-dev action mask

libata EH ignores port-wide actions in per-dev action mask.  However,
device resume requests EH_SOFTRESET using per-dev action mask.  Under
certain circumstances, this results in not resetting frozen port after
resuming which causes failure of all commands.

This patch allows port-wide actions to be requested in per-dev action
mask.  Before EH recovery starts, port-wide actions will be collected.

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