1. 27 6月, 2006 14 次提交
  2. 26 6月, 2006 13 次提交
    • A
      [SCSI] SCSI core: Allow QUIESCE -> CANCEL sdev transition · 9ea72909
      Alan Stern 提交于
      We have to be able to remove SCSI devices even when they are suspended, so
      QUIESCE -> CANCEL must be a legal state transition.  This patch (as727)
      adds the transition to the state machine.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      9ea72909
    • L
      [SCSI] sd/scsi_lib simplify sd_rw_intr and scsi_io_completion · 03aba2f7
      Luben Tuikov 提交于
      This patch simplifies "good_bytes" computation in sd_rw_intr().
      sd: "good_bytes" computation is always done in terms of the resolution
      of the device's medium, since after that it is the number of good bytes
      we pass around and other layers/contexts (as opposed ot sd) can translate
      that to their own resolution (block layer:512).  It also makes
      scsi_io_completion() processing more straightforward, eliminating the
      3rd argument to the function.
      
      It also fixes a couple of bugs like not checking return value,
      using "break" instead of "return;", etc.
      
      I've been running with this patch for some time now on a
      test (do-it-all) system.
      Signed-off-by: NLuben Tuikov <ltuikov@yahoo.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      03aba2f7
    • H
      [SCSI] aic79xx: remove slave_destroy · f89d0a4e
      Hannes Reinecke 提交于
      Even with the latest fixes aic79xx still occasionally triggers the
      BUG_ON in slave_destroy. Rather than trying to figure out the various
      levels of interaction here I've decided to remove the callback altogether.
      
      The primary reason for the slave_alloc / slave_destroy is to keep an
      index of pointers to the sdevs associated with a given target.
      However, by changing the arguments to the affected functions slightly
      it's possible to avoid the use of that index entirely.
      The only performance penalty we'll incur is in writing the
      information for /proc/scsi/XXX, as we'll have to recurse over all
      available sdevs to find the correct ones. But I doubt that reading
      from /proc is in any way time-critical.
      Signed-off-by: NHannes Reinecke <hare@suse.de>
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      f89d0a4e
    • H
      [SCSI] HP XP devinfo update · 9ba0883c
      Hannes Reinecke 提交于
      According to Anthony Cheung all HP XP arrays with "OPEN-" 
      types support REPORT_LUN. So there is no reason why we
      shouldn't use it.
      Signed-off-by: NAnthony Cheung <anthony.cheung@hp.com>
      Signed-off-by: NHannes Reinecke <hare@suse.de>
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      9ba0883c
    • S
      [SCSI] megaraid_sas: zcr with fix · 0e98936c
      Sumant Patro 提交于
      The patch adds support for a ZCR controller (Device ID : 0x413).
      
      It also has a critical bug fix :
      
      Disable controller interrupt before firing INIT cmd to FW.  Interrupt
      is enabled after required initialization is over. This is done to
      ensure that driver is ready to handle interrupts when it is generated
      by the controller.
      Signed-off-by: NSumant Patro <Sumant.Patro@lsil.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      0e98936c
    • D
      [SCSI] ibmvscsi: treat busy and error conditions separately · cefbda2d
      Dave C Boutcher 提交于
      This patch fixes a condition where ibmvscsi treats a transport error as a
      "busy" condition, so no errors were returned to the scsi mid-layer.
      In a RAID environment this means that I/O hung rather than failing
      over.
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      cefbda2d
    • D
      [SCSI] scsi_debug version 1.79 · c65b1445
      Douglas Gilbert 提交于
        - add 'virtual_gb' parameter to simulate large storage
          (by wrapping in dev_size_mb megabytes of actual ram)
        - add 'no_lun_0' parameter to skip lun 0 on each target
          (but still respond as required to INQUIRY + REPORT LUNS)
        - add well know lu support
        - add MODE SELECT commands support [pages: 0xa and 0x1c]
        - add LOG SENSE command support [pages: 0xd and 0x2f]
        - add READ CAPACITY (16) support
        - increase number of mode pages supported (to read),
          mainly transport specific (SAS) mode (sub)pages
        - add more VPD pages and extend others, including
          ATA information VPD page
        - START STOP UNIT now maintains a state machine
        - READ (16) and WRITE (16) cope with lbas larger
          than 32 bits (needed for the 'virtual_gb' parameter)
        - allow single command transfers up to 32 MB
        - more precise error (sense data) messages
      Signed-off-by: NDouglas Gilbert <dougg@torque.net>
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      c65b1445
    • D
      [SCSI] kmalloc argument switcheroo in recent 53c700 change. · 4311fa60
      Dave Jones 提交于
      On Wed, Jun 21, 2006 at 07:00:34PM +0000, Linux Kernel wrote:
       > commit 67d59dfd
       > tree ae85703651d81740f4a6cd398f9dd4d6aabe6a2f
       > parent 6db874fb
       > author James Bottomley <James.Bottomley@steeleye.com> Wed, 14 Jun 2006 07:31:19 -0500
       > committer James Bottomley <jejb@mulgrave.il.steeleye.com> Tue, 20 Jun 2006 05:34:01 -0500
       >
       > [SCSI] 53c700: remove reliance on deprecated cmnd fields
       >  ...
       >
       > +	SDp->hostdata = kmalloc(GFP_KERNEL, sizeof(struct NCR_700_sense));
       > +
       > +	if (!SDp->hostdata)
       > +		return -ENOMEM;
      
      "I'll take reversed arguments for $100 please Alex".
      Signed-off-by: NDave Jones <davej@redhat.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      4311fa60
    • R
      [PATCH] advansys section fixes · c836043e
      Randy Dunlap 提交于
      Priority: not critical.
      Mark 3 functions __init.  Saves a little memory.
      This makes these functions' calls to AdvWaitEEPCmd() (which is __init)
      be clean (i.e., eliminates text -> init -> text call chain).
      
      Fix multiple section mismatch warnings:
      WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet3550EEPConfig' (at offset 0x7a22) and 'AdvSet38C0800EEPConfig'
      WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet3550EEPConfig' (at offset 0x7a4e) and 'AdvSet38C0800EEPConfig'
      WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet3550EEPConfig' (at offset 0x7a79) and 'AdvSet38C0800EEPConfig'
      WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet3550EEPConfig' (at offset 0x7aa2) and 'AdvSet38C0800EEPConfig'
      WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet3550EEPConfig' (at offset 0x7abb) and 'AdvSet38C0800EEPConfig'
      WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet38C0800EEPConfig' (at offset 0x7ae0) and 'AdvSet38C1600EEPConfig'
      WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet38C0800EEPConfig' (at offset 0x7b0c) and 'AdvSet38C1600EEPConfig'
      WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet38C0800EEPConfig' (at offset 0x7b37) and 'AdvSet38C1600EEPConfig'
      WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet38C0800EEPConfig' (at offset 0x7b60) and 'AdvSet38C1600EEPConfig'
      WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet38C0800EEPConfig' (at offset 0x7b79) and 'AdvSet38C1600EEPConfig'
      WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet38C1600EEPConfig' (at offset 0x7b9e) and 'AdvExeScsiQueue'
      WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet38C1600EEPConfig' (at offset 0x7bca) and 'AdvExeScsiQueue'
      WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet38C1600EEPConfig' (at offset 0x7bf5) and 'AdvExeScsiQueue'
      WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet38C1600EEPConfig' (at offset 0x7c1e) and 'AdvExeScsiQueue'
      WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet38C1600EEPConfig' (at offset 0x7c37) and 'AdvExeScsiQueue'
      Signed-off-by: NRandy Dunlap <rdunlap@xenotime.net>
      Cc: James Bottomley <James.Bottomley@steeleye.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      c836043e
    • R
      [PATCH] megaraid_mbox: fix section mismatch warnings · cedfb178
      Randy Dunlap 提交于
      Fix section warning:
      WARNING: drivers/scsi/megaraid/megaraid_mbox.o - Section mismatch: reference to .init.text: from .text between 'megaraid_probe_one' (at offset 0x171e) and 'megaraid_queue_command'
      Signed-off-by: NRandy Dunlap <rdunlap@xenotime.net>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      cedfb178
    • R
      [PATCH] wd7000: fix section mismatch warnings · b9bcf9c1
      Randy.Dunlap 提交于
      From: Randy Dunlap <rdunlap@xenotime.net>
      
      Fix section mismatch in wd7000 driver:
      WARNING: drivers/scsi/wd7000.o - Section mismatch: reference to .init.text: from .text after 'wd7000_detect' (at offset 0xa5d)
      WARNING: drivers/scsi/wd7000.o - Section mismatch: reference to .init.text: from .text after 'wd7000_detect' (at offset 0xab6)
      WARNING: drivers/scsi/wd7000.o - Section mismatch: reference to .init.text: from .text after 'wd7000_detect' (at offset 0xb67
      Signed-off-by: NRandy Dunlap <rdunlap@xenotime.net>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      b9bcf9c1
    • R
      [PATCH] m68k: convert mac irq code · 9c5f4afd
      Roman Zippel 提交于
      Signed-off-by: NRoman Zippel <zippel@linux-m68k.org>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      9c5f4afd
    • R
      b035c96b
  3. 24 6月, 2006 3 次提交
  4. 23 6月, 2006 10 次提交