zfcp_erp.c (cf9ce948f47640797bd19980e1d99c6d17d0bdc3) zfcp_erp.c (663e0890e31cb85f0cca5ac1faaee0d2d52880b5)
1/*
2 * zfcp device driver
3 *
4 * Error Recovery Procedures (ERP).
5 *
6 * Copyright IBM Corp. 2002, 2010
7 */
8

--- 936 unchanged lines hidden (view full) ---

945
946 return zfcp_erp_port_strategy_open_common(erp_action);
947}
948
949static void zfcp_erp_lun_strategy_clearstati(struct scsi_device *sdev)
950{
951 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev);
952
1/*
2 * zfcp device driver
3 *
4 * Error Recovery Procedures (ERP).
5 *
6 * Copyright IBM Corp. 2002, 2010
7 */
8

--- 936 unchanged lines hidden (view full) ---

945
946 return zfcp_erp_port_strategy_open_common(erp_action);
947}
948
949static void zfcp_erp_lun_strategy_clearstati(struct scsi_device *sdev)
950{
951 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev);
952
953 atomic_clear_mask(ZFCP_STATUS_COMMON_ACCESS_DENIED |
954 ZFCP_STATUS_LUN_SHARED | ZFCP_STATUS_LUN_READONLY,
953 atomic_clear_mask(ZFCP_STATUS_COMMON_ACCESS_DENIED,
955 &zfcp_sdev->status);
956}
957
958static int zfcp_erp_lun_strategy_close(struct zfcp_erp_action *erp_action)
959{
960 int retval = zfcp_fsf_close_lun(erp_action);
961 if (retval == -ENOMEM)
962 return ZFCP_ERP_NOMEM;

--- 597 unchanged lines hidden ---
954 &zfcp_sdev->status);
955}
956
957static int zfcp_erp_lun_strategy_close(struct zfcp_erp_action *erp_action)
958{
959 int retval = zfcp_fsf_close_lun(erp_action);
960 if (retval == -ENOMEM)
961 return ZFCP_ERP_NOMEM;

--- 597 unchanged lines hidden ---