aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/ulp
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2011-07-25 14:48:43 -0400
committerJames Bottomley <JBottomley@Parallels.com>2011-08-27 10:36:06 -0400
commit1d063c17298d7cd26cfe350f1e93e1727b4aa53f (patch)
treece7996d0b3fe0903287eac2649c79658b5c9c528 /drivers/infiniband/ulp
parent3128c6c73cdf3df92c3165bfb785ae50114d18bf (diff)
[SCSI] iscsi class: sysfs group is_visible callout for session attrs
The iscsi class currently does not support writable sysfs attrs for LLD sysfs settings. This patch converts the iscsi class and driver's session attrs to use the attribute container sysfs group and the sysfs group's is_visible callout to be able to support readable or writable sysfs attrs. Signed-off-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/infiniband/ulp')
-rw-r--r--drivers/infiniband/ulp/iser/iscsi_iser.c32
1 files changed, 19 insertions, 13 deletions
diff --git a/drivers/infiniband/ulp/iser/iscsi_iser.c b/drivers/infiniband/ulp/iser/iscsi_iser.c
index c716722628cf..4f2411298b20 100644
--- a/drivers/infiniband/ulp/iser/iscsi_iser.c
+++ b/drivers/infiniband/ulp/iser/iscsi_iser.c
@@ -648,6 +648,25 @@ static mode_t iser_attr_is_visible(int param_type, int param)
648 case ISCSI_PARAM_PERSISTENT_PORT: 648 case ISCSI_PARAM_PERSISTENT_PORT:
649 case ISCSI_PARAM_PING_TMO: 649 case ISCSI_PARAM_PING_TMO:
650 case ISCSI_PARAM_RECV_TMO: 650 case ISCSI_PARAM_RECV_TMO:
651 case ISCSI_PARAM_INITIAL_R2T_EN:
652 case ISCSI_PARAM_MAX_R2T:
653 case ISCSI_PARAM_IMM_DATA_EN:
654 case ISCSI_PARAM_FIRST_BURST:
655 case ISCSI_PARAM_MAX_BURST:
656 case ISCSI_PARAM_PDU_INORDER_EN:
657 case ISCSI_PARAM_DATASEQ_INORDER_EN:
658 case ISCSI_PARAM_TARGET_NAME:
659 case ISCSI_PARAM_TPGT:
660 case ISCSI_PARAM_USERNAME:
661 case ISCSI_PARAM_PASSWORD:
662 case ISCSI_PARAM_USERNAME_IN:
663 case ISCSI_PARAM_PASSWORD_IN:
664 case ISCSI_PARAM_FAST_ABORT:
665 case ISCSI_PARAM_ABORT_TMO:
666 case ISCSI_PARAM_LU_RESET_TMO:
667 case ISCSI_PARAM_TGT_RESET_TMO:
668 case ISCSI_PARAM_IFACE_NAME:
669 case ISCSI_PARAM_INITIATOR_NAME:
651 return S_IRUGO; 670 return S_IRUGO;
652 default: 671 default:
653 return 0; 672 return 0;
@@ -678,19 +697,6 @@ static struct iscsi_transport iscsi_iser_transport = {
678 .owner = THIS_MODULE, 697 .owner = THIS_MODULE,
679 .name = "iser", 698 .name = "iser",
680 .caps = CAP_RECOVERY_L0 | CAP_MULTI_R2T, 699 .caps = CAP_RECOVERY_L0 | CAP_MULTI_R2T,
681 .param_mask = ISCSI_INITIAL_R2T_EN |
682 ISCSI_MAX_R2T |
683 ISCSI_IMM_DATA_EN |
684 ISCSI_FIRST_BURST |
685 ISCSI_MAX_BURST |
686 ISCSI_PDU_INORDER_EN |
687 ISCSI_DATASEQ_INORDER_EN |
688 ISCSI_TARGET_NAME | ISCSI_TPGT |
689 ISCSI_USERNAME | ISCSI_PASSWORD |
690 ISCSI_USERNAME_IN | ISCSI_PASSWORD_IN |
691 ISCSI_FAST_ABORT | ISCSI_ABORT_TMO |
692 ISCSI_LU_RESET_TMO | ISCSI_TGT_RESET_TMO |
693 ISCSI_IFACE_NAME | ISCSI_INITIATOR_NAME,
694 .host_param_mask = ISCSI_HOST_HWADDRESS | 700 .host_param_mask = ISCSI_HOST_HWADDRESS |
695 ISCSI_HOST_NETDEV_NAME | 701 ISCSI_HOST_NETDEV_NAME |
696 ISCSI_HOST_INITIATOR_NAME, 702 ISCSI_HOST_INITIATOR_NAME,