aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/scsi/zfcp_erp.c
diff options
context:
space:
mode:
authorAndreas Herrmann <aherrman@de.ibm.com>2006-05-22 12:15:49 -0400
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-05-28 12:38:15 -0400
commitca3271b40225a1049334766f6fb35b57a0162bd2 (patch)
treea781c265f8cde3ba06a775948a923cb7b5fe896d /drivers/s390/scsi/zfcp_erp.c
parent4a9d2d8bf989c77b54add430932fa5ed8a80dba9 (diff)
[SCSI] zfcp: (cleanup) remove useless comments
Removed some useless comments. Signed-off-by: Andreas Herrmann <aherrman@de.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/s390/scsi/zfcp_erp.c')
-rw-r--r--drivers/s390/scsi/zfcp_erp.c218
1 files changed, 0 insertions, 218 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{