1. 26 6月, 2008 1 次提交
  2. 25 6月, 2008 2 次提交
  3. 16 6月, 2008 2 次提交
  4. 10 6月, 2008 1 次提交
  5. 31 5月, 2008 3 次提交
  6. 28 5月, 2008 1 次提交
  7. 24 5月, 2008 1 次提交
    • J
      [SCSI] fix intermittent oops in scsi_bus_uevent · 1f42ea7b
      James Bottomley 提交于
      Reported-by: NSitsofe Wheeler <sitsofe@yahoo.com>
      > BUG: unable to handle kernel paging request at e6f17fac
      > IP: [<c02604d6>] scsi_bus_uevent+0x1/0x17
      > *pde = 2714b163 *pte = 26f17160
      > Oops: 0000 [#1] DEBUG_PAGEALLOC
      > last sysfs file:
      >
      > Pid:  1, comm: swapper Not tainted (2.6.26-rc2-next-20080516skw #30)
      > EIP: 0060:[<c02604d6>] EFLAGS: 00010282 CPU: 0
      > EIP is at scsi_bus_uevent+0x1/0x17
      > EAX: e6f18014 EBX: e6f18014 ECX: c02604d5 EDX: e7173000
      > ESI: e7173000 EDI: e7173000 EBP: e7851ca0 ESP: e7851c90
      >  DS: 007b ES: 007b FS: 0000 GS: 0000 SS: 0068
      
      The problem is caused by:
      
      commit b0ed4336
      Author: Hannes Reinecke <hare@suse.de>
      Date:   Tue Mar 18 14:32:28 2008 +0100
      
          [SCSI] add scsi_host and scsi_target to scsi_bus
      
      which added scsi_bus_type to the struct scsi_target device.  This
      causes both the scsi_device and scsi_target to fire scsi_bus_uevents.
      However, the actualy scsi_bus_uevent() call assumes blindly that it's
      a struct scsi_device.  Check for this and return immediately if it
      isn't.
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      1f42ea7b
  8. 23 5月, 2008 1 次提交
    • H
      scsi: fix integer as NULL pointer warning · 9bcf0910
      Harvey Harrison 提交于
      drivers/scsi/aha152x.c:3585:60: warning: Using plain integer as NULL pointer
      drivers/scsi/aha152x.c:3845:56: warning: Using plain integer as NULL pointer
      drivers/scsi/qla1280.c:2814:37: warning: Using plain integer as NULL pointer
      drivers/scsi/atp870u.c:750:47: warning: Using plain integer as NULL pointer
      drivers/scsi/3w-9xxx.c:1281:36: warning: Using plain integer as NULL pointer
      drivers/scsi/3w-9xxx.c:1293:36: warning: Using plain integer as NULL pointer
      drivers/scsi/3w-9xxx.c:1301:35: warning: Using plain integer as NULL pointer
      drivers/scsi/hptiop.c:447:10: warning: Using plain integer as NULL pointer
      drivers/scsi/hptiop.c:457:10: warning: Using plain integer as NULL pointer
      drivers/scsi/hptiop.c:479:24: warning: Using plain integer as NULL pointer
      drivers/scsi/hptiop.c:483:22: warning: Using plain integer as NULL pointer
      drivers/scsi/hptiop.c:1213:23: warning: Using plain integer as NULL pointer
      drivers/scsi/hptiop.c:1214:23: warning: Using plain integer as NULL pointer
      Signed-off-by: NHarvey Harrison <harvey.harrison@gmail.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      9bcf0910
  9. 22 5月, 2008 1 次提交
  10. 21 5月, 2008 1 次提交
    • G
      SCSI: fix race in device_create · 24b42566
      Greg Kroah-Hartman 提交于
      There is a race from when a device is created with device_create() and
      then the drvdata is set with a call to dev_set_drvdata() in which a
      sysfs file could be open, yet the drvdata will be NULL, causing all
      sorts of bad things to happen.
      
      This patch fixes the problem by using the new function,
      device_create_drvdata().  It fixes the problem in all of the scsi
      drivers that need it.
      
      Cc: Kay Sievers <kay.sievers@vrfy.org>
      Cc: Doug Gilbert <dgilbert@interlog.com>
      Cc: James E.J. Bottomley <James.Bottomley@HansenPartnership.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      24b42566
  11. 15 5月, 2008 10 次提交
  12. 14 5月, 2008 1 次提交
    • J
      [SCSI] qla1280: Fix queue depth problem · af5741c6
      Jeremy Higdon 提交于
      The qla1280 driver was ANDing the output value of mailbox register
      0 with (1 << target-number) to determine whether to enable queueing
      on the target in question.
      
      But mailbox register 0 has the status code for the mailbox command
      (in this case, Set Target Parameters).  Potential values are:
      /*
       * ISP mailbox command complete status codes
       */
      
      So clearly that is in error.  I can't think what the author of that
      line was looking for in a mailbox register, so I just eliminated the
      AND.  flag is used later in the function, and I think that the later
      usage was also wrong, though it was used to set values that aren't
      used.  Oh well, an overhaul of this driver is not what I want to do
      now -- just a bugfix.
      
      After the fix, I found that my disks were getting a queue depth of
      255, which is far too many.  Most SCSI disks are limited to 32 or
      64.  In any case, there's no point, queueing up a bunch of commands
      to the adapter that will just result in queue full or starve other
      targets from being issued commands due to running out of internal
      memory.  So I dropped default queue depth to 32 (from which 1 is
      subtracted elsewhere, giving net of 31).
      
      I tested with a Seagate ST336753LC, and results look good, so
      I'm satisfied with this patch.
      Signed-off-by: NJeremy Higdon <jeremy@sgi.com>
      Acked-by: NJes Sorensen <jes@sgi.com>
      Cc: Stable Tree <stable@kernel.org>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      af5741c6
  13. 11 5月, 2008 2 次提交
    • J
      [SCSI] aha152x: Fix oops on module removal · 64976a03
      James Bottomley 提交于
      Reported-by: NFrank de Jong <frapex@xs4all.nl>
      > after trying to unload the module:
      > BUG: unable to handle kernel paging request at 00100100
      > IP: [<fb9ff667>] :aha152x:aha152x_exit+0x47/0x6a
      > *pde = 00000000
      > Oops: 0000 [#1] PREEMPT SMP
      > Modules linked in: aha152x(-) w83781d hwmon_vid tun ne 8390 bonding
      > usb_storage snd_usb_audio snd_usb_lib snd_rawmidi pwc snd_seq_device
      > compat_ioctl32 snd_hwdep videodev v4l1_compat 3c59x mii intel_agp
      > agpgart snd_pcm_oss snd_pcm snd_timer snd_page_alloc snd_mixer_oss snd
      >
      > Pid: 2837, comm: rmmod Not tainted (2.6.25.3 #1)
      > EIP: 0060:[<fb9ff667>] EFLAGS: 00210212 CPU: 0
      > EIP is at aha152x_exit+0x47/0x6a [aha152x]
      > EAX: 00000001 EBX: 000ffdc4 ECX: f7c517a8 EDX: 00000001
      > ESI: 00000000 EDI: 00000003 EBP: e7880000 ESP: e7881f58
      >   DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
      > Process rmmod (pid: 2837, ti=e7880000 task=f27eb580 task.ti=e7880000)
      > Stack: fba03700 c01419d2 31616861 00783235 e795ee70 c0157709 b7f24000 e79ae000
      >         c0158271 ffffffff b7f25000 e79ae004 e795e370 b7f25000 e795e37c e795e370
      >         009ae000 fba03700 00000880 e7881fa8 00000000 bf93ec20 bf93ec20 c0102faa
      > Call Trace:
      >   [<c01419d2>] sys_delete_module+0x112/0x1a0
      >   [<c0157709>] remove_vma+0x39/0x50
      >   [<c0158271>] do_munmap+0x181/0x1f0
      >   [<c0102faa>] sysenter_past_esp+0x5f/0x85
      >   [<c0490000>] rsc_parse+0x0/0x3c0
      
      The problem is that the driver calls aha152x_release() under a
      list_for_each_entry().  Unfortunately, aha152x_release() deletes from
      the list in question.  Fix this by using list_for_each_entry_safe().
      
      Cc: Stable Tree <stable@kernel.org>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      64976a03
    • J
      [SCSI] aha152x: fix init suspiciously returned 1, it should follow 0/-E convention · ad2fa42d
      James Bottomley 提交于
      Reported-by: NFrank de Jong <frapex@xs4all.nl>
      > [1.] One line summary of the problem:
      > linux-2.6.25.3, aha152x'->init suspiciously returned 1, it should
      > follow 0/-E convention. The module / driver works okay. Unloading the
      > module is impossible.
      
      The driver is apparently returning 0 on failure and 1 on success.
      That's a bit unfortunate.  Fix it by altering to -ENODEV and 0.
      
      Cc: Stable Tree <stable@kernel.org>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      ad2fa42d
  14. 09 5月, 2008 2 次提交
    • M
      [SCSI] libiscsi regression in 2.6.25: fix setting of recv timer · c8611f97
      Mike Christie 提交于
      If the ping tmo is longer than the recv tmo then we could miss a window
      where we were supposed to check the recv tmo. This happens because
      the ping code will set the next timeout for the ping timeout, and if the
      ping executes quickly there will be a long chunk of time before the
      timer wakes up again.
      
      This patch has the ping processing code kick off a recv
      tmo check when getting a nop in response to our ping.
      Signed-off-by: NMike Christie <michaelc@cs.wisc.edu>
      Cc: Stable Tree <stable@kernel.org>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      c8611f97
    • A
      drivers/scsi/dpt_i2o.c: fix build on alpha · 8b2cc917
      Andrew Morton 提交于
      alpha:
      
      drivers/scsi/dpt_i2o.c:1997: error: implicit declaration of function 'adpt_alpha_info'
      drivers/scsi/dpt_i2o.c: At top level:
      drivers/scsi/dpt_i2o.c:2032: warning: conflicting types for 'adpt_alpha_info'
      drivers/scsi/dpt_i2o.c:2032: error: static declaration of 'adpt_alpha_info' follows non-static declaration
      drivers/scsi/dpt_i2o.c:1997: error: previous implicit declaration of 'adpt_alpha_info' was here
      
      Due to a copy-n-paste error in drivers/scsi/dpti.h.
      
      Fix that up and remove some of the many daft static-declarations-in-a-header
      which this driver enjoys.
      
      Cc: Miquel van Smoorenburg <miquels@cistron.nl>
      Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      8b2cc917
  15. 08 5月, 2008 3 次提交
    • M
      [SCSI] libiscsi regression in 2.6.25: fix nop timer handling · 4cf10435
      Mike Christie 提交于
      The following patch fixes a bug in the iscsi nop processing.
      The target sends iscsi nops to ping the initiator and the
      initiator has to send nops to reply and can send nops to
      ping the target.
      
      In 2.6.25 we moved the nop processing to the kernel to handle
      problems when the userspace daemon is not up, but the target
      is pinging us, and to handle when scsi commands timeout, but
      the transport may be the cause (we can send a nop to check
      the transport). When we added this code we added a bug where
      if the transport timer wakes at the exact same time we are supposed to check
      for a nop timeout we drop the session instead of checking the transport.
      
      This patch checks if a iscsi ping is outstanding and if the ping has
      timed out, to determine if we need to signal a connection problem.
      Signed-off-by: NMike Christie <michaelc@cs.wisc.edu>
      Cc: Stable Tree <stable@kernel.org>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      4cf10435
    • J
      [SCSI] gdth: fix Error: Driver 'gdth' is already registered, aborting... · a85591fd
      James Bottomley 提交于
      This message appears on modprobe/rmmod/modprobe of the driver.  It's
      caused because if the driver has no instances, it returns an error
      from gdth_init, which causes the module to fail to load.
      Unfortunately, the module's pci driver is still registered at this
      point.
      
      Fix this by making gdth behave like a modern driver and insert even if
      it doesn't find any instances (in case of hot plug or software driven
      binding).
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      a85591fd
    • J
      [SCSI] gdth: fix timer handling · 2d6f0d0c
      James Bottomley 提交于
      The global timer handling is problematic in that if someone unbinds a
      PCI gdth instance, the BUG_ON() in the timer will cause a panic.
      
      Fix this by making the timer start and stop depending on whether there
      are instances present.  This should also permit binding and unbinding
      to work.
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      2d6f0d0c
  16. 06 5月, 2008 1 次提交
  17. 03 5月, 2008 7 次提交