1. 03 10月, 2011 3 次提交
  2. 22 9月, 2011 15 次提交
  3. 18 9月, 2011 3 次提交
  4. 17 9月, 2011 6 次提交
  5. 31 8月, 2011 10 次提交
  6. 29 8月, 2011 3 次提交
    • N
      [SCSI] sd: Use sd_printk() instead of printk() · fe2d1851
      Nao Nishijima 提交于
      sd_ioctl() still use printk() for log output.
      It should use sd_printk() instead of printk(), as well as other sd_*.
      
      All SCSI messages should output via s*_printk() instead of printk().
      Signed-off-by: NNao Nishijima <nao.nishijima.xt@hitachi.com>
      Signed-off-by: NJames Bottomley <JBottomley@Parallels.com>
      fe2d1851
    • N
      [SCSI] genhd: add a new attribute "alias" in gendisk · a72c5e5e
      Nao Nishijima 提交于
      This patch allows the user to set an "alias" of the disk via sysfs interface.
      
      This patch only adds a new attribute "alias" in gendisk structure.
      To show the alias instead of the device name in kernel messages,
      we need to revise printk messages and use alias_name() in them.
      
      Example:
      (current) printk("disk name is %s\n", disk->disk_name);
      (new)     printk("disk name is %s\n", alias_name(disk));
      
      Users can use alphabets, numbers, '-' and '_' in "alias" attribute. A disk can
      have an "alias" which length is up to 255 bytes. This attribute is write-once.
      Suggested-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      Suggested-by: NJon Masters <jcm@redhat.com>
      Signed-off-by: NNao Nishijima <nao.nishijima.xt@hitachi.com>
      Signed-off-by: NJames Bottomley <JBottomley@Parallels.com>
      a72c5e5e
    • M
      [SCSI] scsi scan: don't fail scans when host is in recovery · 76e4e12f
      Mike Christie 提交于
      The problem is that if we are doing a scsi scan then the device goes
      into recovery then we will wait for the recovery to complete. It waits
      because scsi-ml will send inquiries or report luns and the queueing code
      will have been blocked due to the host not being ready. However, if we
      are in recovery and then a scan is started the scan will silently fail
      and some devices will not be added.
      
      It is easy to hit the problem where devices do not show up with
      FC where we are doing tests that disrupt the target controllers.
      When the controller is disruprted (reboot, or setting firmware, etc),
      and we cause the dev loss tmo to fire then devices will be removed
      Then when the problem has been fixed, the rport will be scanned and
      devices should be added back. But if we cause another disruption before
      scanning has started then devices will not get added back. If the problem
      is not started until the scan is started then the devices will be added
      back.
      
      This patch fixes that problem by not failing scans when the host
      is in recovery. We will let scsi-ml send the IO and let the queueing
      and scsi error handling deal with it like is done if we went into
      recovery while scanning.
      
      For recovery cases where the host is being torn down then with the
      patch we will still fail the scan since there is not point in scanning.
      Signed-off-by: NMike Christie <michaelc@cs.wisc.edu>
      Signed-off-by: NJames Bottomley <JBottomley@Parallels.com>
      76e4e12f