diff options
author | Christof Schmitt <christof.schmitt@de.ibm.com> | 2008-10-01 06:42:15 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-10-03 13:11:52 -0400 |
commit | ff3b24fa5370a7ca618f212284d9b36fcedb9c0e (patch) | |
tree | d5631509c630046c9d0a42a4e949179976b0ef9f /drivers/s390/scsi/zfcp_qdio.c | |
parent | 2450d3e7b8604d0abb042817f2502cb7ee0b782f (diff) |
[SCSI] zfcp: Update message with input from review
Update the kernel messages in zfcp with input from the message review
and remove some messages that have been identified as redundant.
Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: Swen Schillig <swen@vnet.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/s390/scsi/zfcp_qdio.c')
-rw-r--r-- | drivers/s390/scsi/zfcp_qdio.c | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/drivers/s390/scsi/zfcp_qdio.c b/drivers/s390/scsi/zfcp_qdio.c index cc49eaa9281f..9c5b84980901 100644 --- a/drivers/s390/scsi/zfcp_qdio.c +++ b/drivers/s390/scsi/zfcp_qdio.c | |||
@@ -57,7 +57,7 @@ void zfcp_qdio_free(struct zfcp_adapter *adapter) | |||
57 | 57 | ||
58 | static void zfcp_qdio_handler_error(struct zfcp_adapter *adapter, u8 id) | 58 | static void zfcp_qdio_handler_error(struct zfcp_adapter *adapter, u8 id) |
59 | { | 59 | { |
60 | dev_warn(&adapter->ccw_device->dev, "QDIO problem occurred.\n"); | 60 | dev_warn(&adapter->ccw_device->dev, "A QDIO problem occurred\n"); |
61 | 61 | ||
62 | zfcp_erp_adapter_reopen(adapter, | 62 | zfcp_erp_adapter_reopen(adapter, |
63 | ZFCP_STATUS_ADAPTER_LINK_UNPLUGGED | | 63 | ZFCP_STATUS_ADAPTER_LINK_UNPLUGGED | |
@@ -174,8 +174,8 @@ static void zfcp_qdio_int_resp(struct ccw_device *cdev, unsigned int qdio_err, | |||
174 | 174 | ||
175 | if (unlikely(!(sbale->flags & SBAL_FLAGS_LAST_ENTRY))) | 175 | if (unlikely(!(sbale->flags & SBAL_FLAGS_LAST_ENTRY))) |
176 | dev_warn(&adapter->ccw_device->dev, | 176 | dev_warn(&adapter->ccw_device->dev, |
177 | "Protocol violation by adapter. " | 177 | "A QDIO protocol error occurred, " |
178 | "Continuing operations.\n"); | 178 | "operations continue\n"); |
179 | } | 179 | } |
180 | 180 | ||
181 | /* | 181 | /* |
@@ -457,17 +457,11 @@ int zfcp_qdio_open(struct zfcp_adapter *adapter) | |||
457 | if (atomic_test_mask(ZFCP_STATUS_ADAPTER_QDIOUP, &adapter->status)) | 457 | if (atomic_test_mask(ZFCP_STATUS_ADAPTER_QDIOUP, &adapter->status)) |
458 | return -EIO; | 458 | return -EIO; |
459 | 459 | ||
460 | if (qdio_establish(&adapter->qdio_init_data)) { | 460 | if (qdio_establish(&adapter->qdio_init_data)) |
461 | dev_err(&adapter->ccw_device->dev, | 461 | goto failed_establish; |
462 | "Establish of QDIO queues failed.\n"); | ||
463 | return -EIO; | ||
464 | } | ||
465 | 462 | ||
466 | if (qdio_activate(adapter->ccw_device)) { | 463 | if (qdio_activate(adapter->ccw_device)) |
467 | dev_err(&adapter->ccw_device->dev, | ||
468 | "Activate of QDIO queues failed.\n"); | ||
469 | goto failed_qdio; | 464 | goto failed_qdio; |
470 | } | ||
471 | 465 | ||
472 | for (cc = 0; cc < QDIO_MAX_BUFFERS_PER_Q; cc++) { | 466 | for (cc = 0; cc < QDIO_MAX_BUFFERS_PER_Q; cc++) { |
473 | sbale = &(adapter->resp_q.sbal[cc]->element[0]); | 467 | sbale = &(adapter->resp_q.sbal[cc]->element[0]); |
@@ -477,11 +471,8 @@ int zfcp_qdio_open(struct zfcp_adapter *adapter) | |||
477 | } | 471 | } |
478 | 472 | ||
479 | if (do_QDIO(adapter->ccw_device, QDIO_FLAG_SYNC_INPUT, 0, 0, | 473 | if (do_QDIO(adapter->ccw_device, QDIO_FLAG_SYNC_INPUT, 0, 0, |
480 | QDIO_MAX_BUFFERS_PER_Q)) { | 474 | QDIO_MAX_BUFFERS_PER_Q)) |
481 | dev_err(&adapter->ccw_device->dev, | ||
482 | "Init of QDIO response queue failed.\n"); | ||
483 | goto failed_qdio; | 475 | goto failed_qdio; |
484 | } | ||
485 | 476 | ||
486 | /* set index of first avalable SBALS / number of available SBALS */ | 477 | /* set index of first avalable SBALS / number of available SBALS */ |
487 | adapter->req_q.first = 0; | 478 | adapter->req_q.first = 0; |
@@ -492,5 +483,8 @@ int zfcp_qdio_open(struct zfcp_adapter *adapter) | |||
492 | 483 | ||
493 | failed_qdio: | 484 | failed_qdio: |
494 | qdio_shutdown(adapter->ccw_device, QDIO_FLAG_CLEANUP_USING_CLEAR); | 485 | qdio_shutdown(adapter->ccw_device, QDIO_FLAG_CLEANUP_USING_CLEAR); |
486 | failed_establish: | ||
487 | dev_err(&adapter->ccw_device->dev, | ||
488 | "Setting up the QDIO connection to the FCP adapter failed\n"); | ||
495 | return -EIO; | 489 | return -EIO; |
496 | } | 490 | } |