Re: [PATCH 13/17] iscsi target: replace module sids with lio's sid

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 6/7/20 10:36 PM, Mike Christie wrote:
This is the first phase in hooking iscsi into the sysfs API. This patch
has it use lio core's sid instead of its internal ones.

We have 2 sids in the iscsi target layer:
- module sid: int id that is unique across all iscsi targets. Used for
   sess_get_index().
- iscsi target port group sid: int id that is unique in the tpg. Uses
   for logging.

The lio one works exactly like the iscsi target module one, and the iscsi
tpg one is not very useful because when you have multiple tpgs you can't
tell which tpg the session is under. In the latter case the lio core one
is more useful, because it matches what we see in userspace and logs and
we can distinguish what fabric/target/tpg the session is under.

Signed-off-by: Mike Christie <michael.christie@xxxxxxxxxx>
---
  drivers/target/iscsi/iscsi_target.c          |  6 ++----
  drivers/target/iscsi/iscsi_target_configfs.c |  6 ++----
  drivers/target/iscsi/iscsi_target_erl0.c     | 11 ++++++-----
  drivers/target/iscsi/iscsi_target_erl2.c     |  8 ++++----
  drivers/target/iscsi/iscsi_target_login.c    | 20 ++------------------
  drivers/target/iscsi/iscsi_target_stat.c     |  3 +--
  drivers/target/iscsi/iscsi_target_tmr.c      |  2 +-
  drivers/target/iscsi/iscsi_target_tpg.c      | 16 +++++++---------
  drivers/target/iscsi/iscsi_target_util.c     |  2 +-
  include/target/iscsi/iscsi_target_core.h     |  6 ------
  10 files changed, 26 insertions(+), 54 deletions(-)

Reviewed-by: Hannes Reinecke <hare@xxxxxxx>

Cheers,

Hannes
--
Dr. Hannes Reinecke            Teamlead Storage & Networking
hare@xxxxxxx                               +49 911 74053 688
SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg
HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux