1. 04 4月, 2013 1 次提交
  2. 02 4月, 2013 2 次提交
  3. 30 3月, 2013 30 次提交
  4. 29 3月, 2013 7 次提交
    • N
      target: Fix RESERVATION_CONFLICT status regression for iscsi-target special case · f85eda8d
      Nicholas Bellinger 提交于
      This patch fixes a regression introduced in v3.8-rc1 code where a failed
      target_check_reservation() check in target_setup_cmd_from_cdb() was causing
      an incorrect SAM_STAT_GOOD status to be returned during a WRITE operation
      performed by an unregistered / unreserved iscsi initiator port.
      
      This regression is only effecting iscsi-target due to a special case check
      for TCM_RESERVATION_CONFLICT within iscsi_target_erl1.c:iscsit_execute_cmd(),
      and was still correctly disallowing WRITE commands from backend submission
      for unregistered / unreserved initiator ports, while returning the incorrect
      SAM_STAT_GOOD status due to the missing SAM_STAT_RESERVATION_CONFLICT
      assignment.
      
      This regression was first introduced with:
      
      commit de103c93
      Author: Christoph Hellwig <hch@lst.de>
      Date:   Tue Nov 6 12:24:09 2012 -0800
      
          target: pass sense_reason as a return value
      
      Go ahead and re-add the missing SAM_STAT_RESERVATION_CONFLICT assignment
      during a target_check_reservation() failure, so that iscsi-target code
      sends the correct SCSI status.
      
      All other fabrics using target_submit_cmd_*() with a RESERVATION_CONFLICT
      call to transport_generic_request_failure() are not effected by this bug.
      Reported-by: NJeff Leung <jleung@curriegrad2004.ca>
      Cc: Christoph Hellwig <hch@lst.de>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NNicholas Bellinger <nab@linux-iscsi.org>
      f85eda8d
    • N
      tcm_vhost: Avoid VIRTIO_RING_F_EVENT_IDX feature bit · 5dade710
      Nicholas Bellinger 提交于
      This patch adds a VHOST_SCSI_FEATURES mask minus VIRTIO_RING_F_EVENT_IDX
      so that vhost-scsi-pci userspace will strip this feature bit once
      GET_FEATURES reports it as being unsupported on the host.
      
      This is to avoid a bug where ->handle_kicks() are missed when EVENT_IDX
      is enabled by default in userspace code.
      
      (mst: Rename to VHOST_SCSI_FEATURES + add comment)
      Acked-by: NMichael S. Tsirkin <mst@redhat.com>
      Reviewed-by: NAsias He <asias@redhat.com>
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NNicholas Bellinger <nab@linux-iscsi.org>
      5dade710
    • A
      usb: ehci: mark unlink_empty_async_suspended() as __maybe_unused · 70b55c2a
      Arnd Bergmann 提交于
      Patch 4d053fda "usb: ehci: unlink_empty_async_suspended() only used
      with CONFIG_PM" tried to hide the unlink_empty_async_suspended function
      inside of an #ifdef to work around an unused function warning.
      
      Unfortunately that had the effect of introducing a new warning:
      
      drivers/usb/host/ehci-q.c:1297:13: warning: 'unlink_empty_async_suspended'
      	declared 'static' but never defined [-Wunused-function]
      
      While we could add another #ifdef around the function declaration to avoid
      this, a nicer solution is to mark it as __maybe_unused, which will let
      gcc silently drop the function definition when it is not needed.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      70b55c2a
    • A
      USB: improve port transitions when EHCI starts up · 05768918
      Alan Stern 提交于
      It seems to be getting more common recently for EHCI host controllers
      to be probed after their companion UHCI or OHCI controllers.  This may
      be caused partly by splitting the ehci-pci driver out from ehci-hcd,
      or it may be caused by changes in the way the kernel does driver
      probing.
      
      Regardless, it has a tendency to cause problems.  When an EHCI
      controller is initialized, it takes ownership of all the ports away
      from the companions.  In effect, it forcefully disconnects all the USB
      devices that may already be using a companion controller.
      
      This patch (as1672b) tries to make the transition more orderly by
      deconfiguring the root hubs for all the companion controllers before
      initializing the EHCI controller, and reconfiguring them afterward.
      The result is a soft disconnect rather than a hard one.
      
      Internally, the patch refactors the code involved in associating EHCI
      controllers with their companions.  The old approach, in which a
      single function is called with an argument telling it what to do (the
      companion_action enum), has been replaced with a scheme using multiple
      callback functions, each performing a single task.
      
      This patch won't solve all the problems people encounter when their
      EHCI controllers start up, but it will at least reduce the number of
      error messages generated by the unexpected disconnections.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Tested-by: NJenya Y <jy.gerstmaier@gmail.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      05768918
    • A
      USB: EHCI: DT support for generic bus glue · f3bc64d6
      Arnd Bergmann 提交于
      This lets us use the ehci-platform driver on platforms without special
      requirements for their ehci controllers. In particular, this is true
      for the vt8500/wm8x50 platforms, which currently have a separate
      driver that causes problems with multiplatform configurations.
      Tested-by: NTony Prisk <linux@prisktech.co.nz>
      Tested-by: NPeter Vasil <petervasil@gmail.com>
      Acked-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      f3bc64d6
    • T
      usb: ehci: unlink_empty_async_suspended() only used with CONFIG_PM · 4d053fda
      Tony Prisk 提交于
      Compiling with !CONFIG_PM generates an unused function warning on
      unlink_empty_async_suspended().
      
      Enclose the function in a #ifdef CONFIG_PM
      Signed-off-by: NTony Prisk <linux@prisktech.co.nz>
      Acked-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      4d053fda
    • J
      USB: ehci-spear: add CONFIG_PM_SLEEP to suspend/resume functions · ab1f046a
      Jingoo Han 提交于
      Add CONFIG_PM_SLEEP to suspend/resume functions to fix the following
      build warning when CONFIG_PM_SLEEP is not selected. This is because
      sleep PM callbacks defined by SIMPLE_DEV_PM_OPS are only used when
      the CONFIG_PM_SLEEP is enabled.
      
      drivers/usb/host/ehci-spear.c:82:12: warning: 'ehci_spear_drv_suspend' defined but not used [-Wunused-function]
      drivers/usb/host/ehci-spear.c:90:12: warning: 'ehci_spear_drv_resume' defined but not used [-Wunused-function]
      Signed-off-by: NJingoo Han <jg1.han@samsung.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      ab1f046a