aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/s390/scsi/zfcp_erp.c218
-rw-r--r--drivers/s390/scsi/zfcp_fsf.c20
-rw-r--r--drivers/s390/scsi/zfcp_scsi.c46
3 files changed, 0 insertions, 284 deletions
diff --git a/drivers/s390/scsi/zfcp_erp.c b/drivers/s390/scsi/zfcp_erp.c
index e2dac3dc3fcd..f57440c96e27 100644
--- a/drivers/s390/scsi/zfcp_erp.c
+++ b/drivers/s390/scsi/zfcp_erp.c
@@ -221,13 +221,6 @@ zfcp_erp_adapter_reopen(struct zfcp_adapter *adapter, int clear_mask)
221 return retval; 221 return retval;
222} 222}
223 223
224/*
225 * function:
226 *
227 * purpose:
228 *
229 * returns:
230 */
231int 224int
232zfcp_erp_adapter_shutdown(struct zfcp_adapter *adapter, int clear_mask) 225zfcp_erp_adapter_shutdown(struct zfcp_adapter *adapter, int clear_mask)
233{ 226{
@@ -241,13 +234,6 @@ zfcp_erp_adapter_shutdown(struct zfcp_adapter *adapter, int clear_mask)
241 return retval; 234 return retval;
242} 235}
243 236
244/*
245 * function:
246 *
247 * purpose:
248 *
249 * returns:
250 */
251int 237int
252zfcp_erp_port_shutdown(struct zfcp_port *port, int clear_mask) 238zfcp_erp_port_shutdown(struct zfcp_port *port, int clear_mask)
253{ 239{
@@ -261,13 +247,6 @@ zfcp_erp_port_shutdown(struct zfcp_port *port, int clear_mask)
261 return retval; 247 return retval;
262} 248}
263 249
264/*
265 * function:
266 *
267 * purpose:
268 *
269 * returns:
270 */
271int 250int
272zfcp_erp_unit_shutdown(struct zfcp_unit *unit, int clear_mask) 251zfcp_erp_unit_shutdown(struct zfcp_unit *unit, int clear_mask)
273{ 252{
@@ -802,13 +781,6 @@ zfcp_erp_unit_unblock(struct zfcp_unit *unit)
802 atomic_set_mask(ZFCP_STATUS_COMMON_UNBLOCKED, &unit->status); 781 atomic_set_mask(ZFCP_STATUS_COMMON_UNBLOCKED, &unit->status);
803} 782}
804 783
805/*
806 * function:
807 *
808 * purpose:
809 *
810 * returns:
811 */
812static void 784static void
813zfcp_erp_action_ready(struct zfcp_erp_action *erp_action) 785zfcp_erp_action_ready(struct zfcp_erp_action *erp_action)
814{ 786{
@@ -1346,13 +1318,6 @@ zfcp_erp_strategy_check_action(struct zfcp_erp_action *erp_action, int retval)
1346 return retval; 1318 return retval;
1347} 1319}
1348 1320
1349/*
1350 * function:
1351 *
1352 * purpose:
1353 *
1354 * returns:
1355 */
1356static int 1321static int
1357zfcp_erp_strategy_do_action(struct zfcp_erp_action *erp_action) 1322zfcp_erp_strategy_do_action(struct zfcp_erp_action *erp_action)
1358{ 1323{
@@ -1528,13 +1493,6 @@ zfcp_erp_strategy_check_target(struct zfcp_erp_action *erp_action, int result)
1528 return result; 1493 return result;
1529} 1494}
1530 1495
1531/*
1532 * function:
1533 *
1534 * purpose:
1535 *
1536 * returns:
1537 */
1538static int 1496static int
1539zfcp_erp_strategy_statechange(int action, 1497zfcp_erp_strategy_statechange(int action,
1540 u32 status, 1498 u32 status,
@@ -1576,13 +1534,6 @@ zfcp_erp_strategy_statechange(int action,
1576 return retval; 1534 return retval;
1577} 1535}
1578 1536
1579/*
1580 * function:
1581 *
1582 * purpose:
1583 *
1584 * returns:
1585 */
1586static inline int 1537static inline int
1587zfcp_erp_strategy_statechange_detected(atomic_t * target_status, u32 erp_status) 1538zfcp_erp_strategy_statechange_detected(atomic_t * target_status, u32 erp_status)
1588{ 1539{
@@ -1595,13 +1546,6 @@ zfcp_erp_strategy_statechange_detected(atomic_t * target_status, u32 erp_status)
1595 !(ZFCP_STATUS_ERP_CLOSE_ONLY & erp_status)); 1546 !(ZFCP_STATUS_ERP_CLOSE_ONLY & erp_status));
1596} 1547}
1597 1548
1598/*
1599 * function:
1600 *
1601 * purpose:
1602 *
1603 * returns:
1604 */
1605static int 1549static int
1606zfcp_erp_strategy_check_unit(struct zfcp_unit *unit, int result) 1550zfcp_erp_strategy_check_unit(struct zfcp_unit *unit, int result)
1607{ 1551{
@@ -1632,13 +1576,6 @@ zfcp_erp_strategy_check_unit(struct zfcp_unit *unit, int result)
1632 return result; 1576 return result;
1633} 1577}
1634 1578
1635/*
1636 * function:
1637 *
1638 * purpose:
1639 *
1640 * returns:
1641 */
1642static int 1579static int
1643zfcp_erp_strategy_check_port(struct zfcp_port *port, int result) 1580zfcp_erp_strategy_check_port(struct zfcp_port *port, int result)
1644{ 1581{
@@ -1668,13 +1605,6 @@ zfcp_erp_strategy_check_port(struct zfcp_port *port, int result)
1668 return result; 1605 return result;
1669} 1606}
1670 1607
1671/*
1672 * function:
1673 *
1674 * purpose:
1675 *
1676 * returns:
1677 */
1678static int 1608static int
1679zfcp_erp_strategy_check_adapter(struct zfcp_adapter *adapter, int result) 1609zfcp_erp_strategy_check_adapter(struct zfcp_adapter *adapter, int result)
1680{ 1610{
@@ -1754,13 +1684,6 @@ zfcp_erp_strategy_followup_actions(int action,
1754 return 0; 1684 return 0;
1755} 1685}
1756 1686
1757/*
1758 * function:
1759 *
1760 * purpose:
1761 *
1762 * returns:
1763 */
1764static int 1687static int
1765zfcp_erp_strategy_check_queues(struct zfcp_adapter *adapter) 1688zfcp_erp_strategy_check_queues(struct zfcp_adapter *adapter)
1766{ 1689{
@@ -1799,12 +1722,6 @@ zfcp_erp_wait(struct zfcp_adapter *adapter)
1799 return retval; 1722 return retval;
1800} 1723}
1801 1724
1802/*
1803 * function: zfcp_erp_modify_adapter_status
1804 *
1805 * purpose:
1806 *
1807 */
1808void 1725void
1809zfcp_erp_modify_adapter_status(struct zfcp_adapter *adapter, 1726zfcp_erp_modify_adapter_status(struct zfcp_adapter *adapter,
1810 u32 mask, int set_or_clear) 1727 u32 mask, int set_or_clear)
@@ -1909,13 +1826,6 @@ zfcp_erp_port_reopen_all(struct zfcp_adapter *adapter, int clear_mask)
1909 return retval; 1826 return retval;
1910} 1827}
1911 1828
1912/*
1913 * function:
1914 *
1915 * purpose:
1916 *
1917 * returns: FIXME
1918 */
1919static int 1829static int
1920zfcp_erp_port_reopen_all_internal(struct zfcp_adapter *adapter, int clear_mask) 1830zfcp_erp_port_reopen_all_internal(struct zfcp_adapter *adapter, int clear_mask)
1921{ 1831{
@@ -2360,13 +2270,6 @@ zfcp_erp_adapter_strategy_open_fsf_xport(struct zfcp_erp_action *erp_action)
2360 return ret; 2270 return ret;
2361} 2271}
2362 2272
2363/*
2364 * function:
2365 *
2366 * purpose:
2367 *
2368 * returns:
2369 */
2370static int 2273static int
2371zfcp_erp_adapter_strategy_open_fsf_statusread(struct zfcp_erp_action 2274zfcp_erp_adapter_strategy_open_fsf_statusread(struct zfcp_erp_action
2372 *erp_action) 2275 *erp_action)
@@ -2535,13 +2438,6 @@ zfcp_erp_port_strategy(struct zfcp_erp_action *erp_action)
2535 return retval; 2438 return retval;
2536} 2439}
2537 2440
2538/*
2539 * function:
2540 *
2541 * purpose:
2542 *
2543 * returns:
2544 */
2545static int 2441static int
2546zfcp_erp_port_strategy_open(struct zfcp_erp_action *erp_action) 2442zfcp_erp_port_strategy_open(struct zfcp_erp_action *erp_action)
2547{ 2443{
@@ -2556,15 +2452,6 @@ zfcp_erp_port_strategy_open(struct zfcp_erp_action *erp_action)
2556 return retval; 2452 return retval;
2557} 2453}
2558 2454
2559/*
2560 * function:
2561 *
2562 * purpose:
2563 *
2564 * returns:
2565 *
2566 * FIXME(design): currently only prepared for fabric (nameserver!)
2567 */
2568static int 2455static int
2569zfcp_erp_port_strategy_open_common(struct zfcp_erp_action *erp_action) 2456zfcp_erp_port_strategy_open_common(struct zfcp_erp_action *erp_action)
2570{ 2457{
@@ -2680,13 +2567,6 @@ zfcp_erp_port_strategy_open_common(struct zfcp_erp_action *erp_action)
2680 return retval; 2567 return retval;
2681} 2568}
2682 2569
2683/*
2684 * function:
2685 *
2686 * purpose:
2687 *
2688 * returns:
2689 */
2690static int 2570static int
2691zfcp_erp_port_strategy_open_nameserver(struct zfcp_erp_action *erp_action) 2571zfcp_erp_port_strategy_open_nameserver(struct zfcp_erp_action *erp_action)
2692{ 2572{
@@ -2803,13 +2683,6 @@ zfcp_erp_port_forced_strategy_close(struct zfcp_erp_action *erp_action)
2803 return retval; 2683 return retval;
2804} 2684}
2805 2685
2806/*
2807 * function:
2808 *
2809 * purpose:
2810 *
2811 * returns:
2812 */
2813static int 2686static int
2814zfcp_erp_port_strategy_clearstati(struct zfcp_port *port) 2687zfcp_erp_port_strategy_clearstati(struct zfcp_port *port)
2815{ 2688{
@@ -3012,13 +2885,6 @@ zfcp_erp_unit_strategy(struct zfcp_erp_action *erp_action)
3012 return retval; 2885 return retval;
3013} 2886}
3014 2887
3015/*
3016 * function:
3017 *
3018 * purpose:
3019 *
3020 * returns:
3021 */
3022static int 2888static int
3023zfcp_erp_unit_strategy_clearstati(struct zfcp_unit *unit) 2889zfcp_erp_unit_strategy_clearstati(struct zfcp_unit *unit)
3024{ 2890{
@@ -3119,13 +2985,6 @@ zfcp_erp_unit_strategy_open(struct zfcp_erp_action *erp_action)
3119 return retval; 2985 return retval;
3120} 2986}
3121 2987
3122/*
3123 * function:
3124 *
3125 * purpose:
3126 *
3127 * returns:
3128 */
3129static inline void 2988static inline void
3130zfcp_erp_timeout_init(struct zfcp_erp_action *erp_action) 2989zfcp_erp_timeout_init(struct zfcp_erp_action *erp_action)
3131{ 2990{
@@ -3321,13 +3180,6 @@ zfcp_erp_action_enqueue(int action,
3321 return retval; 3180 return retval;
3322} 3181}
3323 3182
3324/*
3325 * function:
3326 *
3327 * purpose:
3328 *
3329 * returns:
3330 */
3331static int 3183static int
3332zfcp_erp_action_dequeue(struct zfcp_erp_action *erp_action) 3184zfcp_erp_action_dequeue(struct zfcp_erp_action *erp_action)
3333{ 3185{
@@ -3422,13 +3274,6 @@ zfcp_erp_action_cleanup(int action, struct zfcp_adapter *adapter,
3422} 3274}
3423 3275
3424 3276
3425/*
3426 * function:
3427 *
3428 * purpose:
3429 *
3430 * returns: FIXME
3431 */
3432static int 3277static int
3433zfcp_erp_action_dismiss_adapter(struct zfcp_adapter *adapter) 3278zfcp_erp_action_dismiss_adapter(struct zfcp_adapter *adapter)
3434{ 3279{
@@ -3445,13 +3290,6 @@ zfcp_erp_action_dismiss_adapter(struct zfcp_adapter *adapter)
3445 return retval; 3290 return retval;
3446} 3291}
3447 3292
3448/*
3449 * function:
3450 *
3451 * purpose:
3452 *
3453 * returns: FIXME
3454 */
3455static int 3293static int
3456zfcp_erp_action_dismiss_port(struct zfcp_port *port) 3294zfcp_erp_action_dismiss_port(struct zfcp_port *port)
3457{ 3295{
@@ -3470,13 +3308,6 @@ zfcp_erp_action_dismiss_port(struct zfcp_port *port)
3470 return retval; 3308 return retval;
3471} 3309}
3472 3310
3473/*
3474 * function:
3475 *
3476 * purpose:
3477 *
3478 * returns: FIXME
3479 */
3480static int 3311static int
3481zfcp_erp_action_dismiss_unit(struct zfcp_unit *unit) 3312zfcp_erp_action_dismiss_unit(struct zfcp_unit *unit)
3482{ 3313{
@@ -3491,13 +3322,6 @@ zfcp_erp_action_dismiss_unit(struct zfcp_unit *unit)
3491 return retval; 3322 return retval;
3492} 3323}
3493 3324
3494/*
3495 * function:
3496 *
3497 * purpose: moves erp_action to 'erp running list'
3498 *
3499 * returns:
3500 */
3501static inline void 3325static inline void
3502zfcp_erp_action_to_running(struct zfcp_erp_action *erp_action) 3326zfcp_erp_action_to_running(struct zfcp_erp_action *erp_action)
3503{ 3327{
@@ -3508,13 +3332,6 @@ zfcp_erp_action_to_running(struct zfcp_erp_action *erp_action)
3508 list_move(&erp_action->list, &erp_action->adapter->erp_running_head); 3332 list_move(&erp_action->list, &erp_action->adapter->erp_running_head);
3509} 3333}
3510 3334
3511/*
3512 * function:
3513 *
3514 * purpose: moves erp_action to 'erp ready list'
3515 *
3516 * returns:
3517 */
3518static inline void 3335static inline void
3519zfcp_erp_action_to_ready(struct zfcp_erp_action *erp_action) 3336zfcp_erp_action_to_ready(struct zfcp_erp_action *erp_action)
3520{ 3337{
@@ -3525,11 +3342,6 @@ zfcp_erp_action_to_ready(struct zfcp_erp_action *erp_action)
3525 list_move(&erp_action->list, &erp_action->adapter->erp_ready_head); 3342 list_move(&erp_action->list, &erp_action->adapter->erp_ready_head);
3526} 3343}
3527 3344
3528/*
3529 * function: zfcp_erp_port_boxed
3530 *
3531 * purpose:
3532 */
3533void 3345void
3534zfcp_erp_port_boxed(struct zfcp_port *port) 3346zfcp_erp_port_boxed(struct zfcp_port *port)
3535{ 3347{
@@ -3546,11 +3358,6 @@ zfcp_erp_port_boxed(struct zfcp_port *port)
3546 zfcp_erp_port_reopen(port, ZFCP_STATUS_COMMON_ERP_FAILED); 3358 zfcp_erp_port_reopen(port, ZFCP_STATUS_COMMON_ERP_FAILED);
3547} 3359}
3548 3360
3549/*
3550 * function: zfcp_erp_unit_boxed
3551 *
3552 * purpose:
3553 */
3554void 3361void
3555zfcp_erp_unit_boxed(struct zfcp_unit *unit) 3362zfcp_erp_unit_boxed(struct zfcp_unit *unit)
3556{ 3363{
@@ -3564,11 +3371,6 @@ zfcp_erp_unit_boxed(struct zfcp_unit *unit)
3564 zfcp_erp_unit_reopen(unit, ZFCP_STATUS_COMMON_ERP_FAILED); 3371 zfcp_erp_unit_reopen(unit, ZFCP_STATUS_COMMON_ERP_FAILED);
3565} 3372}
3566 3373
3567/*
3568 * function: zfcp_erp_port_access_denied
3569 *
3570 * purpose:
3571 */
3572void 3374void
3573zfcp_erp_port_access_denied(struct zfcp_port *port) 3375zfcp_erp_port_access_denied(struct zfcp_port *port)
3574{ 3376{
@@ -3585,11 +3387,6 @@ zfcp_erp_port_access_denied(struct zfcp_port *port)
3585 read_unlock_irqrestore(&zfcp_data.config_lock, flags); 3387 read_unlock_irqrestore(&zfcp_data.config_lock, flags);
3586} 3388}
3587 3389
3588/*
3589 * function: zfcp_erp_unit_access_denied
3590 *
3591 * purpose:
3592 */
3593void 3390void
3594zfcp_erp_unit_access_denied(struct zfcp_unit *unit) 3391zfcp_erp_unit_access_denied(struct zfcp_unit *unit)
3595{ 3392{
@@ -3603,11 +3400,6 @@ zfcp_erp_unit_access_denied(struct zfcp_unit *unit)
3603 ZFCP_SET); 3400 ZFCP_SET);
3604} 3401}
3605 3402
3606/*
3607 * function: zfcp_erp_adapter_access_changed
3608 *
3609 * purpose:
3610 */
3611void 3403void
3612zfcp_erp_adapter_access_changed(struct zfcp_adapter *adapter) 3404zfcp_erp_adapter_access_changed(struct zfcp_adapter *adapter)
3613{ 3405{
@@ -3629,11 +3421,6 @@ zfcp_erp_adapter_access_changed(struct zfcp_adapter *adapter)
3629 read_unlock_irqrestore(&zfcp_data.config_lock, flags); 3421 read_unlock_irqrestore(&zfcp_data.config_lock, flags);
3630} 3422}
3631 3423
3632/*
3633 * function: zfcp_erp_port_access_changed
3634 *
3635 * purpose:
3636 */
3637void 3424void
3638zfcp_erp_port_access_changed(struct zfcp_port *port) 3425zfcp_erp_port_access_changed(struct zfcp_port *port)
3639{ 3426{
@@ -3662,11 +3449,6 @@ zfcp_erp_port_access_changed(struct zfcp_port *port)
3662 zfcp_get_busid_by_adapter(adapter), port->wwpn); 3449 zfcp_get_busid_by_adapter(adapter), port->wwpn);
3663} 3450}
3664 3451
3665/*
3666 * function: zfcp_erp_unit_access_changed
3667 *
3668 * purpose:
3669 */
3670void 3452void
3671zfcp_erp_unit_access_changed(struct zfcp_unit *unit) 3453zfcp_erp_unit_access_changed(struct zfcp_unit *unit)
3672{ 3454{
diff --git a/drivers/s390/scsi/zfcp_fsf.c b/drivers/s390/scsi/zfcp_fsf.c
index 4a35960103d8..4475e412066c 100644
--- a/drivers/s390/scsi/zfcp_fsf.c
+++ b/drivers/s390/scsi/zfcp_fsf.c
@@ -1929,14 +1929,6 @@ skip_fsfstatus:
1929 return retval; 1929 return retval;
1930} 1930}
1931 1931
1932/*
1933 * function:
1934 *
1935 * purpose:
1936 *
1937 * returns: address of initiated FSF request
1938 * NULL - request could not be initiated
1939 */
1940int 1932int
1941zfcp_fsf_exchange_config_data(struct zfcp_erp_action *erp_action) 1933zfcp_fsf_exchange_config_data(struct zfcp_erp_action *erp_action)
1942{ 1934{
@@ -3656,18 +3648,6 @@ zfcp_fsf_send_fcp_command_task(struct zfcp_adapter *adapter,
3656 return retval; 3648 return retval;
3657} 3649}
3658 3650
3659/*
3660 * function: zfcp_fsf_send_fcp_command_task_management
3661 *
3662 * purpose:
3663 *
3664 * returns:
3665 *
3666 * FIXME(design): should be watched by a timeout!!!
3667 * FIXME(design) shouldn't this be modified to return an int
3668 * also...don't know how though
3669 *
3670 */
3671struct zfcp_fsf_req * 3651struct zfcp_fsf_req *
3672zfcp_fsf_send_fcp_command_task_management(struct zfcp_adapter *adapter, 3652zfcp_fsf_send_fcp_command_task_management(struct zfcp_adapter *adapter,
3673 struct zfcp_unit *unit, 3653 struct zfcp_unit *unit,
diff --git a/drivers/s390/scsi/zfcp_scsi.c b/drivers/s390/scsi/zfcp_scsi.c
index 4b4041a9da58..118cf0fa0afc 100644
--- a/drivers/s390/scsi/zfcp_scsi.c
+++ b/drivers/s390/scsi/zfcp_scsi.c
@@ -151,14 +151,6 @@ set_driver_byte(u32 * result, char status)
151 set_byte(result, status, 3); 151 set_byte(result, status, 3);
152} 152}
153 153
154/*
155 * function: zfcp_scsi_slave_alloc
156 *
157 * purpose:
158 *
159 * returns:
160 */
161
162static int 154static int
163zfcp_scsi_slave_alloc(struct scsi_device *sdp) 155zfcp_scsi_slave_alloc(struct scsi_device *sdp)
164{ 156{
@@ -185,14 +177,6 @@ zfcp_scsi_slave_alloc(struct scsi_device *sdp)
185 return retval; 177 return retval;
186} 178}
187 179
188/*
189 * function: zfcp_scsi_slave_destroy
190 *
191 * purpose:
192 *
193 * returns:
194 */
195
196static void 180static void
197zfcp_scsi_slave_destroy(struct scsi_device *sdpnt) 181zfcp_scsi_slave_destroy(struct scsi_device *sdpnt)
198{ 182{
@@ -364,15 +348,6 @@ zfcp_scsi_queuecommand(struct scsi_cmnd *scpnt,
364 return zfcp_scsi_command_async(adapter, unit, scpnt, NULL); 348 return zfcp_scsi_command_async(adapter, unit, scpnt, NULL);
365} 349}
366 350
367/*
368 * function: zfcp_unit_lookup
369 *
370 * purpose:
371 *
372 * returns:
373 *
374 * context:
375 */
376static struct zfcp_unit * 351static struct zfcp_unit *
377zfcp_unit_lookup(struct zfcp_adapter *adapter, int channel, scsi_id_t id, 352zfcp_unit_lookup(struct zfcp_adapter *adapter, int channel, scsi_id_t id,
378 scsi_lun_t lun) 353 scsi_lun_t lun)
@@ -481,13 +456,6 @@ zfcp_scsi_eh_abort_handler(struct scsi_cmnd *scpnt)
481 return retval; 456 return retval;
482} 457}
483 458
484/*
485 * function: zfcp_scsi_eh_device_reset_handler
486 *
487 * purpose:
488 *
489 * returns:
490 */
491int 459int
492zfcp_scsi_eh_device_reset_handler(struct scsi_cmnd *scpnt) 460zfcp_scsi_eh_device_reset_handler(struct scsi_cmnd *scpnt)
493{ 461{
@@ -615,13 +583,6 @@ zfcp_scsi_eh_host_reset_handler(struct scsi_cmnd *scpnt)
615 return SUCCESS; 583 return SUCCESS;
616} 584}
617 585
618/*
619 * function:
620 *
621 * purpose:
622 *
623 * returns:
624 */
625int 586int
626zfcp_adapter_scsi_register(struct zfcp_adapter *adapter) 587zfcp_adapter_scsi_register(struct zfcp_adapter *adapter)
627{ 588{
@@ -668,13 +629,6 @@ zfcp_adapter_scsi_register(struct zfcp_adapter *adapter)
668 return retval; 629 return retval;
669} 630}
670 631
671/*
672 * function:
673 *
674 * purpose:
675 *
676 * returns:
677 */
678void 632void
679zfcp_adapter_scsi_unregister(struct zfcp_adapter *adapter) 633zfcp_adapter_scsi_unregister(struct zfcp_adapter *adapter)
680{ 634{