]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: ipr: Add asynchronous error notification
authorBrian King <brking@linux.vnet.ibm.com>
Wed, 24 Aug 2016 17:56:51 +0000 (12:56 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 26 Aug 2016 03:39:15 +0000 (23:39 -0400)
commit2bf7784d2c3bf41969a7f0c6398dac792a414658
treed7fef8ffde79690a471775c0205d91d449bb3571
parent878a1ef42da2f79ad64468214f362df1b69e2c44
scsi: ipr: Add asynchronous error notification

This patch implements functions for pushing HCAM (host controlled
asynchronous messages) error buffers to userspace through sysfs
attributes.  Reads to the "async_err_log" attribute will result in a
single HCAM buffer being copied to userspace; one can process the next
HCAM buffer by writing any string to the same attribute.

A new list was added to the ioa_cfg structure to store the HCAM buffers
for later reporting. We also send a KOBJ_CHANGE event whenever a new
HCAM buffer is made available to userspace.

Signed-off-by: Heitor Ricardo Alves de Siqueira <halves@linux.vnet.ibm.com>
Signed-off-by: Gabriel Krisman Bertazi <krisman@linux.vnet.ibm.com>
Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ipr.c
drivers/scsi/ipr.h