27 Jun, 2013

1 commit


14 Jun, 2013

1 commit

  • Suppose an initiator sends a DATA IN command with an allocation length
    shorter than the FC transfer length -- we get a target message like

    TARGET_CORE[qla2xxx]: Expected Transfer Length: 256 does not match SCSI CDB Length: 0 for SAM Opcode: 0x12

    In that case, the target core adjusts the data_length and sets
    se_cmd->residual_count for the underrun. But now suppose that command
    fails and we end up in tcm_qla2xxx_queue_status() -- that function
    unconditionally overwrites residual_count with the already adjusted
    data_length, and the initiator will burp with a message like

    qla2xxx [0000:00:06.0]-301d:0: Dropped frame(s) detected (0x100 of 0x100 bytes).

    Fix this by adding on to the existing underflow residual count instead.

    Signed-off-by: Roland Dreier
    Cc: Giridhar Malavali
    Cc: Chad Dupuis
    Cc: stable
    Signed-off-by: Nicholas Bellinger

    Roland Dreier
     

21 May, 2013

1 commit


13 May, 2013

1 commit

  • The driver uses ha->mbx_cmd_flags variable to pass information between
    its ISR and mailbox routines, however, it does so without the protection of
    any locks. Under certain conditions, this can lead to multiple mailbox
    command completions being signaled, which, in turn, leads to a false
    mailbox timeout error for the subsequently issued mailbox command.

    The issue occurs frequently but intermittenly with the Qlogic 8GFC mezz
    card during card initialization, resulting in card initialization failure.

    Signed-off-by: Gurinder (Sunny) Shergill
    Acked-by: Saurav Kashyap
    Signed-off-by: James Bottomley

    gurinder.shergill@hp.com
     

10 May, 2013

2 commits


03 May, 2013

2 commits


02 May, 2013

1 commit

  • Pull VFS updates from Al Viro,

    Misc cleanups all over the place, mainly wrt /proc interfaces (switch
    create_proc_entry to proc_create(), get rid of the deprecated
    create_proc_read_entry() in favor of using proc_create_data() and
    seq_file etc).

    7kloc removed.

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: (204 commits)
    don't bother with deferred freeing of fdtables
    proc: Move non-public stuff from linux/proc_fs.h to fs/proc/internal.h
    proc: Make the PROC_I() and PDE() macros internal to procfs
    proc: Supply a function to remove a proc entry by PDE
    take cgroup_open() and cpuset_open() to fs/proc/base.c
    ppc: Clean up scanlog
    ppc: Clean up rtas_flash driver somewhat
    hostap: proc: Use remove_proc_subtree()
    drm: proc: Use remove_proc_subtree()
    drm: proc: Use minor->index to label things, not PDE->name
    drm: Constify drm_proc_list[]
    zoran: Don't print proc_dir_entry data in debug
    reiserfs: Don't access the proc_dir_entry in r_open(), r_start() r_show()
    proc: Supply an accessor for getting the data from a PDE's parent
    airo: Use remove_proc_subtree()
    rtl8192u: Don't need to save device proc dir PDE
    rtl8187se: Use a dir under /proc/net/r8180/
    proc: Add proc_mkdir_data()
    proc: Move some bits from linux/proc_fs.h to linux/{of.h,signal.h,tty.h}
    proc: Move PDE_NET() to fs/proc/proc_net.c
    ...

    Linus Torvalds
     

01 May, 2013

2 commits

  • Pull first round of SCSI updates from James "Jej B" Bottomley:
    "The patch set is mostly driver updates (qla4, qla2 [ISF support
    updates], lpfc, aacraid [dual firmware image support]) and a few bug
    fixes"

    * tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi: (47 commits)
    [SCSI] iscsi_tcp: support PF_MEMALLOC/__GFP_MEMALLOC
    [SCSI] libiscsi: avoid unnecessary multiple NULL assignments
    [SCSI] qla4xxx: Update driver version to 5.03.00-k8
    [SCSI] qla4xxx: Added print statements to display AENs
    [SCSI] qla4xxx: Use correct value for max flash node entries
    [SCSI] qla4xxx: Restrict logout from boot target session using session id
    [SCSI] qla4xxx: Use correct flash ddb offset for ISP40XX
    [SCSI] isci: add CONFIG_PM_SLEEP to suspend/resume functions
    [SCSI] scsi_dh_alua: Add module parameter to allow failover to non preferred path without STPG
    [SCSI] qla2xxx: Update the driver version to 8.05.00.03-k.
    [SCSI] qla2xxx: Obtain loopback iteration count from bsg request.
    [SCSI] qla2xxx: Add clarifying printk to thermal access fail cases.
    [SCSI] qla2xxx: Remove duplicated include form qla_isr.c
    [SCSI] qla2xxx: Enhancements to support ISPFx00.
    [SCSI] qla4xxx: Update driver version to 5.03.00-k7
    [SCSI] qla4xxx: Replace dev type macros with generic portal type macros
    [SCSI] scsi_transport_iscsi: Declare portal type string macros for generic use
    [SCSI] qla4xxx: Add flash node mgmt support
    [SCSI] libiscsi: export function iscsi_switch_str_param
    [SCSI] scsi_transport_iscsi: Add flash node mgmt support
    ...

    Linus Torvalds
     
  • Pull SCSI target update from Nicholas Bellinger:
    "The highlights this round include:

    - Add fileio support for WRITE_SAME w/ UNMAP=1 discard (asias)
    - Add fileio support for UNMAP discard (asias)
    - Add tcm_vhost hotplug support to work with upstream QEMU
    vhost-scsi-pci code (asias + mst)
    - Check for aborted sequence in tcm_fc response path (mdr)
    - Add initial iscsit_transport support into iscsi-target code (nab)
    - Refactor iscsi-target RX PDU logic + export request PDU handling
    (nab)
    - Refactor iscsi-target TX queue logic + export response PDU creation
    (nab)
    - Add new iSCSI Extentions for RDMA (ISER) target driver (Or + nab)

    The biggest changes revolve around iscsi-target refactoring in order
    to support the iser-target driver. This includes the conversion of
    the iscsi-target data-path to use modern se_cmd->cmd_kref counting,
    and allowing transport independent aspects of RX/TX PDU
    request/response handling be shared across existing traditional
    iscsi-target code, and the new iser-target code.

    Thanks to Or Gerlitz + Mellanox for supporting the iser-target
    development effort!"

    * 'for-next-merge' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending: (25 commits)
    iser-target: Add iSCSI Extensions for RDMA (iSER) target driver
    tcm_vhost: Enable VIRTIO_SCSI_F_HOTPLUG
    tcm_vhost: Add ioctl to get and set events missed flag
    tcm_vhost: Add hotplug/hotunplug support
    tcm_vhost: Refactor the lock nesting rule
    tcm_fc: Check for aborted sequence
    iscsi-target: Add iser network portal attribute
    iscsi-target: Refactor TX queue logic + export response PDU creation
    iscsi-target: Refactor RX PDU logic + export request PDU handling
    iscsi-target: Add per transport iscsi_cmd alloc/free
    iscsi-target: Add iser-target parameter keys + setup during login
    iscsi-target: Initial traditional TCP conversion to iscsit_transport
    iscsi-target: Add iscsit_transport API template
    target: Add export of target_get_sess_cmd symbol
    target: Change default sense key of NOT_READY
    target/file: Set is_nonrot attribute
    target: Add sbc_execute_unmap() helper
    target/iblock: Add iblock_do_unmap() helper
    target/file: Add fd_do_unmap() helper
    target/file: Add UNMAP emulation support
    ...

    Linus Torvalds
     

25 Apr, 2013

1 commit


12 Apr, 2013

5 commits


10 Apr, 2013

1 commit


06 Apr, 2013

4 commits


22 Feb, 2013

18 commits