1. 15 4月, 2006 2 次提交
    • M
      [SCSI] iscsi: add sysfs attrs for uspace sync up · fd7255f5
      Mike Christie 提交于
      For iscsi boot when going from initramfs to the real root we
      need to stop the userpsace iscsi daemon. To later restart it
      iscsid needs to be able to rebuild itself and part of that
      process is matching a session running the kernel with the
      iscsid representation. To do this the attached patch
      adds several required iscsi values. If the LLD does not provide
      them becuase, login is done in userspace, then the transport
      class and userspace set ths up for the LLD.
      Signed-off-by: NMike Christie <michaelc@cs.wisc.edu>
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      fd7255f5
    • M
      [SCSI] iscsi: rm kernel iscsi handles usage for session and connection · b5c7a12d
      Mike Christie 提交于
      from hare@suse.de and michaelc@cs.wisc.edu
      
      hw iscsi like qla4xxx does not allocate a host per session and
      for userspace it is difficult to restart iscsid using the
      "iscsi handles" for the session and connection, so this
      patch just has the class or userspace allocate the id for
      the session and connection.
      
      Note: this breaks userspace and requires users to upgrade to the newest
      open-iscsi tools. Sorry about his but open-iscsi is still too new to
      say we have a stable user-kernel api and we were not good nough
      designers to know that other hw iscsi drivers and iscsid itself would
      need such changes. Actually we sorta did but at the time we did not
      have the HW available to us so we could only guess.
      
      Luckily, the only tools hooking into the class are the open-iscsi ones
      or other tools like iscsitart hook into the open-iscsi engine from
      userspace or prgroams like anaconda call our tools so they are not affected.
      Signed-off-by: NMike Christie <michaelc@cs.wisc.edu>
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      b5c7a12d
  2. 05 2月, 2006 1 次提交
  3. 15 1月, 2006 1 次提交
    • M
      [SCSI] iscsi: seperate iscsi interface from setup functions · 7b8631b5
      Mike Christie 提交于
      This is the second version of the patch to address Christoph's comments.
      Instead of doing the lib, I just kept everything in scsi_trnapsort_iscsi.c
      like the FC and SPI class. This was becuase the driver model and sysfs
      class is tied to the session and connection setup so separating did not
      buy very much at this time.
      
      The reason for this patch was becuase HW iscsi LLDs like qla4xxx cannot
      use the iscsi class becuase the scsi_host was tied to the interface and
      class code. This patch just seperates the session from scsi host so
      that LLDs that allocate the host per some resource like pci device
      can still use the class.
      
      This is also fixes a couple refcount bugs that can be triggered
      when users have a sysfs file open, close the session, then
      read or write to the file.
      Signed-off-by: NAlex Aizman <itn780@yahoo.com>
      Signed-off-by: NDmitry Yusupov <dmitry_yus@yahoo.com>
      Signed-off-by: NMike Christie <michaelc@cs.wisc.edu>
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      7b8631b5
  4. 06 8月, 2005 1 次提交