diff options
author | Mike Miller <mike.miller@hp.com> | 2009-04-02 15:50:55 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2009-04-07 02:12:38 -0400 |
commit | 0a9279cc7cbe726e995c44a1acae81d446775816 (patch) | |
tree | 80b7eb06a7629f6e0ab0c865f791b6a421a0ef6e /drivers/block/cciss_cmd.h | |
parent | ac44e5b2ed62bf4acf9df84575d3f18c7a6fdf22 (diff) |
cciss: kernel scan thread for MSA2012
The MSA2012 cannot inform the driver of configuration changes since all
management is out of band. This is a departure from any storage we have
supported in the past. We need some way to detect changes on the topology
so we implement this kernel thread. In some instances there's nothing we
can do from the driver (like LUN failure) so just print out a message. In
the case where logical volumes are added or deleted we call
rebuild_lun_table to refresh the driver's view of the world.
Signed-off-by: Mike Miller <mike.miller@hp.com>
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'drivers/block/cciss_cmd.h')
-rw-r--r-- | drivers/block/cciss_cmd.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/drivers/block/cciss_cmd.h b/drivers/block/cciss_cmd.h index 24e22dea1a99..40b1b92dae7f 100644 --- a/drivers/block/cciss_cmd.h +++ b/drivers/block/cciss_cmd.h | |||
@@ -25,6 +25,29 @@ | |||
25 | #define CMD_TIMEOUT 0x000B | 25 | #define CMD_TIMEOUT 0x000B |
26 | #define CMD_UNABORTABLE 0x000C | 26 | #define CMD_UNABORTABLE 0x000C |
27 | 27 | ||
28 | /* Unit Attentions ASC's as defined for the MSA2012sa */ | ||
29 | #define POWER_OR_RESET 0x29 | ||
30 | #define STATE_CHANGED 0x2a | ||
31 | #define UNIT_ATTENTION_CLEARED 0x2f | ||
32 | #define LUN_FAILED 0x3e | ||
33 | #define REPORT_LUNS_CHANGED 0x3f | ||
34 | |||
35 | /* Unit Attentions ASCQ's as defined for the MSA2012sa */ | ||
36 | |||
37 | /* These ASCQ's defined for ASC = POWER_OR_RESET */ | ||
38 | #define POWER_ON_RESET 0x00 | ||
39 | #define POWER_ON_REBOOT 0x01 | ||
40 | #define SCSI_BUS_RESET 0x02 | ||
41 | #define MSA_TARGET_RESET 0x03 | ||
42 | #define CONTROLLER_FAILOVER 0x04 | ||
43 | #define TRANSCEIVER_SE 0x05 | ||
44 | #define TRANSCEIVER_LVD 0x06 | ||
45 | |||
46 | /* These ASCQ's defined for ASC = STATE_CHANGED */ | ||
47 | #define RESERVATION_PREEMPTED 0x03 | ||
48 | #define ASYM_ACCESS_CHANGED 0x06 | ||
49 | #define LUN_CAPACITY_CHANGED 0x09 | ||
50 | |||
28 | //transfer direction | 51 | //transfer direction |
29 | #define XFER_NONE 0x00 | 52 | #define XFER_NONE 0x00 |
30 | #define XFER_WRITE 0x01 | 53 | #define XFER_WRITE 0x01 |