31 Mar, 2011

1 commit


23 Apr, 2010

1 commit


21 Sep, 2009

1 commit


13 Jun, 2009

1 commit

  • Attached is the ELS/CT pass-thru patch for the FC Transport. The patch
    creates a generic framework that lays on top of bsg and the SGIO v4 ioctl
    in order to pass transaction requests to LLDD's.

    The interface supports the following operations:
    On an fc_host basis:
    Request login to the specified N_Port_ID, creating an fc_rport.
    Request logout of the specified N_Port_ID, deleting an fc_rport
    Send ELS request to specified N_Port_ID w/o requiring a login, and
    wait for ELS response.
    Send CT request to specified N_Port_ID and wait for CT response.
    Login is required, but LLDD is allowed to manage login and decide
    whether it stays in place after the request is satisfied.
    Vendor-Unique request. Allows a LLDD-specific request to be passed
    to the LLDD, and the passing of a response back to the application.
    On an fc_rport basis:
    Send ELS request to nport and wait for ELS response.
    Send CT request to nport and wait for CT response.

    The patch also exports several headers from include/scsi such that
    they can be available to user-space applications:
    include/scsi/scsi.h
    include/scsi/scsi_netlink.h
    include/scsi/scsi_netlink_fc.h
    include/scsi/scsi_bsg_fc.h

    For further information, refer to the last RFC:
    http://marc.info/?l=linux-scsi&m=123436574018579&w=2

    Note: Documentation is still spotty and will be added later.

    [bharrosh@panasas.com: update for new block API]
    Signed-off-by: James Smart
    Signed-off-by: James Bottomley

    James Smart
     

09 Jan, 2009

1 commit

  • When I review ocfs2 code, find there are 2 typos to "successfull". After
    doing grep "successfull " in kernel tree, 22 typos found totally -- great
    minds always think alike :)

    This patch fixes all the similar typos. Thanks for Randy's ack and comments.

    Signed-off-by: Coly Li
    Acked-by: Randy Dunlap
    Acked-by: Roland Dreier
    Cc: Jeremy Kerr
    Cc: Jeff Garzik
    Cc: Heiko Carstens
    Cc: Martin Schwidefsky
    Cc: Theodore Ts'o
    Cc: Mark Fasheh
    Cc: Vlad Yasevich
    Cc: Sridhar Samudrala
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Coly Li
     

04 Oct, 2008

1 commit

  • There's already a fc_vport_termintate() call exported by
    the transport. This patch adds a symmetric call to the API to allow
    an NPIV-capable LLD to instantiate vports sans user intervention.

    Additional comments/updates:

    Re: scsi_fc_transport.txt
    Add a function prototype for fc_vport_terminate similar to what's
    done for fc_vport_create

    Re: fc_vport_create
    I recommend we pass the channel number in fc_vport_create rather
    than fixing it at zero.

    Also, ids->vport_type should be set to FC_PORTTYPE_NPIV prior to
    calling fc_vport_create. The comment is also meaningless.

    Added-by and
    Signed-off-by: James Smart
    Signed-off-by: Andrew Vasquez
    Signed-off-by: James Bottomley

    Andrew Vasquez
     

27 Jul, 2008

1 commit


27 May, 2007

1 commit

  • When the vport attribute "delete" is used to delete the vport, sysfs
    deadlocks waiting for the write to complete, which is waiting for the
    sysfs teardown to complete. Moved this effort to a work_q element.

    Took the opportunity to make some other cosmetic changes:
    - removed tabs in Doc file - replaced with expanded spaces
    - minor copyright text and author text updates
    - removed a bunch of trailing whitespace

    Signed-off-by: James Smart
    Signed-off-by: James Bottomley

    James Smart
     

16 May, 2007

1 commit

  • This patch provides support for FC virtual ports based on NPIV.
    For information on the interfaces and design, please read the
    Documentation/scsi/scsi_fc_transport.txt file enclosed within
    the patch.

    The RFC was originally posted here:
    http://marc.info/?l=linux-scsi&m=117226959918393&w=2

    Changes from the initial RFC:
    - Bug fix: needed a transport_class_unregister() for the vport class
    - Create a symlink to the vport in the shost device if it is not the
    parent of the vport.
    - Made symbolic name writable so it can be set after creation
    - Made the temporary fc_vport_identifiers struct private to the
    transport.
    - Deleted the vport_id field from the vport. I couldn't find any good
    use for it (and symname is a good replacement).
    - Made the vport_state and vport_last_state "private" attributes.
    Added the fc_vport_set_state() helper function to manage state
    transitions
    - Updated vport_create() to allow a vport to be created in a disabled
    state.
    - Added INITIALIZING and FAILED vport states
    - Added VPCERR_xxx defines for errors to be returned from vport_create()
    - Created a Documentation/scsi/scsi_fc_transport.txt file that describes
    the interfaces and expected LLDD behaviors.

    Signed-off-by: James Smart
    Signed-off-by: James Bottomley

    James Smart