[SCSI] ibmvfc: Log link up/down events

By default, ibmvfc does not log any async events in order
to avoid flooding the log with them. Improve on this by
logging by default events that are not likely to flood the
log, such as link up/down. Having these events in the log
will improve the ability to debug issues with ibmvfc.

Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
This commit is contained in:
Brian King
2010-09-09 16:20:42 -05:00
committed by James Bottomley
parent e6a4202aa9
commit d99e5f488a
2 changed files with 56 additions and 24 deletions

View File

@@ -541,6 +541,12 @@ enum ibmvfc_async_event {
IBMVFC_AE_ADAPTER_FAILED = 0x1000,
};
struct ibmvfc_async_desc {
enum ibmvfc_async_event ae;
const char *desc;
int log_level;
};
struct ibmvfc_crq {
volatile u8 valid;
volatile u8 format;