diff options
author | Sven Schuetz <sven@linux.vnet.ibm.com> | 2010-07-16 09:37:39 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-07-28 10:48:52 -0400 |
commit | 2d1e547f7523514d1da449bcf08645fe13579378 (patch) | |
tree | 44ebfa0721405d3bd6f20e9c8bfd44adb8908ffd /drivers/s390/scsi/zfcp_fsf.c | |
parent | 706eca49a044a1ea89352dcc4b96ffc1631b2cb5 (diff) |
[SCSI] zfcp: Post events through FC transport class
Post FC transport class netlink events for usage in the userspace,
e.g. for HBAAPI. Supported events are those required for the
polled events in HBAAPI.
- link up
- link down
- incoming RSCN
(events related to FC-AL are not supported, as zfcp has no support for FC-AL)
Signed-off-by: Sven Schuetz <sven@linux.vnet.ibm.com>
Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/s390/scsi/zfcp_fsf.c')
-rw-r--r-- | drivers/s390/scsi/zfcp_fsf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/s390/scsi/zfcp_fsf.c b/drivers/s390/scsi/zfcp_fsf.c index 0710c59b80ae..63402fd5f9ae 100644 --- a/drivers/s390/scsi/zfcp_fsf.c +++ b/drivers/s390/scsi/zfcp_fsf.c | |||
@@ -274,6 +274,7 @@ static void zfcp_fsf_status_read_handler(struct zfcp_fsf_req *req) | |||
274 | break; | 274 | break; |
275 | case FSF_STATUS_READ_LINK_DOWN: | 275 | case FSF_STATUS_READ_LINK_DOWN: |
276 | zfcp_fsf_status_read_link_down(req); | 276 | zfcp_fsf_status_read_link_down(req); |
277 | zfcp_fc_enqueue_event(adapter, FCH_EVT_LINKDOWN, 0); | ||
277 | break; | 278 | break; |
278 | case FSF_STATUS_READ_LINK_UP: | 279 | case FSF_STATUS_READ_LINK_UP: |
279 | dev_info(&adapter->ccw_device->dev, | 280 | dev_info(&adapter->ccw_device->dev, |
@@ -286,6 +287,8 @@ static void zfcp_fsf_status_read_handler(struct zfcp_fsf_req *req) | |||
286 | ZFCP_STATUS_ADAPTER_LINK_UNPLUGGED | | 287 | ZFCP_STATUS_ADAPTER_LINK_UNPLUGGED | |
287 | ZFCP_STATUS_COMMON_ERP_FAILED, | 288 | ZFCP_STATUS_COMMON_ERP_FAILED, |
288 | "fssrh_2", req); | 289 | "fssrh_2", req); |
290 | zfcp_fc_enqueue_event(adapter, FCH_EVT_LINKUP, 0); | ||
291 | |||
289 | break; | 292 | break; |
290 | case FSF_STATUS_READ_NOTIFICATION_LOST: | 293 | case FSF_STATUS_READ_NOTIFICATION_LOST: |
291 | if (sr_buf->status_subtype & FSF_STATUS_READ_SUB_ACT_UPDATED) | 294 | if (sr_buf->status_subtype & FSF_STATUS_READ_SUB_ACT_UPDATED) |