diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-28 15:43:43 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-28 15:43:43 -0500 |
commit | 21f3b24da9328415792efc780f50b9f434c12465 (patch) | |
tree | 446ad6d2154e0f05bcb079cb99a144102c682eb9 /drivers/scsi/scsi_transport_iscsi.c | |
parent | 2a7d2b96d5cba7568139d9ab157a0e97ab32440f (diff) | |
parent | 2b4df6ea53d05625e9ca2dd73bc0e831976e009d (diff) |
Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
Pull first round of SCSI updates from James Bottomley:
"The patch set is mostly driver updates (bnx2fc, ipr, lpfc, qla4) and a
few bug fixes"
Pull delayed because google hates James, and sneakily considers his pull
requests spam. Why, google, why?
* tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi: (60 commits)
[SCSI] aacraid: 1024 max outstanding command support for Series 7 and above
[SCSI] bnx2fc: adjust duplicate test
[SCSI] qla4xxx: Update driver version to 5.03.00-k4
[SCSI] qla4xxx: Fix return code for qla4xxx_session_get_param.
[SCSI] qla4xxx: wait for boot target login response during probe.
[SCSI] qla4xxx: Added support for force firmware dump
[SCSI] qla4xxx: Re-register IRQ handler while retrying initialize of adapter
[SCSI] qla4xxx: Throttle active IOCBs to firmware limits
[SCSI] qla4xxx: Remove unnecessary code from qla4xxx_init_local_data
[SCSI] qla4xxx: Quiesce driver activities while loopback
[SCSI] qla4xxx: Rename MBOX_ASTS_IDC_NOTIFY to MBOX_ASTS_IDC_REQUEST_NOTIFICATION
[SCSI] qla4xxx: Add spurious interrupt messages under debug level 2
[SCSI] cxgb4i: Remove the scsi host device when removing device
[SCSI] bfa: fix strncpy() limiter in bfad_start_ops()
[SCSI] qla4xxx: Update driver version to 5.03.00-k3
[SCSI] qla4xxx: Correct the validation to check in get_sys_info mailbox
[SCSI] qla4xxx: Pass correct function param to qla4_8xxx_rd_direct
[SCSI] lpfc 8.3.37: Update lpfc version for 8.3.37 driver release
[SCSI] lpfc 8.3.37: Fixed infinite loop in lpfc_sli4_fcf_rr_next_index_get.
[SCSI] lpfc 8.3.37: Fixed crash due to SLI Port invalid resource count
...
Diffstat (limited to 'drivers/scsi/scsi_transport_iscsi.c')
-rw-r--r-- | drivers/scsi/scsi_transport_iscsi.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/scsi/scsi_transport_iscsi.c b/drivers/scsi/scsi_transport_iscsi.c index 59d427bf08e2..0a74b975efdf 100644 --- a/drivers/scsi/scsi_transport_iscsi.c +++ b/drivers/scsi/scsi_transport_iscsi.c | |||
@@ -2503,6 +2503,15 @@ show_priv_session_creator(struct device *dev, struct device_attribute *attr, | |||
2503 | } | 2503 | } |
2504 | static ISCSI_CLASS_ATTR(priv_sess, creator, S_IRUGO, show_priv_session_creator, | 2504 | static ISCSI_CLASS_ATTR(priv_sess, creator, S_IRUGO, show_priv_session_creator, |
2505 | NULL); | 2505 | NULL); |
2506 | static ssize_t | ||
2507 | show_priv_session_target_id(struct device *dev, struct device_attribute *attr, | ||
2508 | char *buf) | ||
2509 | { | ||
2510 | struct iscsi_cls_session *session = iscsi_dev_to_session(dev->parent); | ||
2511 | return sprintf(buf, "%d\n", session->target_id); | ||
2512 | } | ||
2513 | static ISCSI_CLASS_ATTR(priv_sess, target_id, S_IRUGO, | ||
2514 | show_priv_session_target_id, NULL); | ||
2506 | 2515 | ||
2507 | #define iscsi_priv_session_attr_show(field, format) \ | 2516 | #define iscsi_priv_session_attr_show(field, format) \ |
2508 | static ssize_t \ | 2517 | static ssize_t \ |
@@ -2575,6 +2584,7 @@ static struct attribute *iscsi_session_attrs[] = { | |||
2575 | &dev_attr_priv_sess_creator.attr, | 2584 | &dev_attr_priv_sess_creator.attr, |
2576 | &dev_attr_sess_chap_out_idx.attr, | 2585 | &dev_attr_sess_chap_out_idx.attr, |
2577 | &dev_attr_sess_chap_in_idx.attr, | 2586 | &dev_attr_sess_chap_in_idx.attr, |
2587 | &dev_attr_priv_sess_target_id.attr, | ||
2578 | NULL, | 2588 | NULL, |
2579 | }; | 2589 | }; |
2580 | 2590 | ||
@@ -2638,6 +2648,8 @@ static umode_t iscsi_session_attr_is_visible(struct kobject *kobj, | |||
2638 | return S_IRUGO; | 2648 | return S_IRUGO; |
2639 | else if (attr == &dev_attr_priv_sess_creator.attr) | 2649 | else if (attr == &dev_attr_priv_sess_creator.attr) |
2640 | return S_IRUGO; | 2650 | return S_IRUGO; |
2651 | else if (attr == &dev_attr_priv_sess_target_id.attr) | ||
2652 | return S_IRUGO; | ||
2641 | else { | 2653 | else { |
2642 | WARN_ONCE(1, "Invalid session attr"); | 2654 | WARN_ONCE(1, "Invalid session attr"); |
2643 | return 0; | 2655 | return 0; |