[PATCH] libata: implement per-dev EH action mask eh_info->dev_action[]
authorTejun Heo <htejun@gmail.com>
Mon, 19 Jun 2006 09:27:23 +0000 (18:27 +0900)
committerJeff Garzik <jeff@garzik.org>
Fri, 23 Jun 2006 03:36:58 +0000 (23:36 -0400)
commit47005f255ed126a4b48a1a2f63164fb1d83bcb0a
treebac4a73716af3d9cdb201f1bd83d65952fa2c988
parent3a778275626c0eb97674e92875efeba01189ce0e
[PATCH] libata: implement per-dev EH action mask eh_info->dev_action[]

Currently, the only per-dev EH action is REVALIDATE.  EH used to
exploit ehi->dev to do selective revalidation on a ATA bus.  However,
this is a bit hacky and makes it impossible to request selective
revalidation from outside of EH or add another per-dev EH action.

This patch adds per-dev EH action mask eh_info->dev_action[] and
update EH to use this field for REVALIDATE.  Note that per-dev actions
can still be specified at port-level and it has the same effect of
specifying the action for all devices on the port.

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