13 Oct, 2012

1 commit


29 Mar, 2009

1 commit

  • * git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6: (119 commits)
    [SCSI] scsi_dh_rdac: Retry for NOT_READY check condition
    [SCSI] mpt2sas: make global symbols unique
    [SCSI] sd: Make revalidate less chatty
    [SCSI] sd: Try READ CAPACITY 16 first for SBC-2 devices
    [SCSI] sd: Refactor sd_read_capacity()
    [SCSI] mpt2sas v00.100.11.15
    [SCSI] mpt2sas: add MPT2SAS_MINOR(221) to miscdevice.h
    [SCSI] ch: Add scsi type modalias
    [SCSI] 3w-9xxx: add power management support
    [SCSI] bsg: add linux/types.h include to bsg.h
    [SCSI] cxgb3i: fix function descriptions
    [SCSI] libiscsi: fix possbile null ptr session command cleanup
    [SCSI] iscsi class: remove host no argument from session creation callout
    [SCSI] libiscsi: pass session failure a session struct
    [SCSI] iscsi lib: remove qdepth param from iscsi host allocation
    [SCSI] iscsi lib: have lib create work queue for transmitting IO
    [SCSI] iscsi class: fix lock dep warning on logout
    [SCSI] libiscsi: don't cap queue depth in iscsi modules
    [SCSI] iscsi_tcp: replace scsi_debug/tcp_debug logging with iscsi conn logging
    [SCSI] libiscsi_tcp: replace tcp_debug/scsi_debug logging with session/conn logging
    ...

    Linus Torvalds
     

24 Mar, 2009

1 commit

  • Currently inherited from sg.c bsg will submit asynchronous request
    at the head-of-the-queue, (using "at_head" set in the call to
    blk_execute_rq_nowait()). This is bad in situation where the queues
    are full, requests will execute out of order, and can cause
    starvation of the first submitted requests.

    The sg_io_v4->flags member is used and a bit is allocated to denote the
    Q_AT_TAIL. Zero is to queue at_head as before, to be compatible with old
    code at the write/read path. SG_IO code path behavior was changed so to
    be the same as write/read behavior. SG_IO was very rarely used and breaking
    compatibility with it is OK at this stage.

    sg_io_hdr at sg.h also has a flags member and uses 3 bits from the first
    nibble and one bit from the last nibble. Even though none of these bits
    are supported by bsg, The second nibble is allocated for use by bsg. Just
    in case.

    Signed-off-by: Boaz Harrosh
    CC: Douglas Gilbert
    Signed-off-by: Jens Axboe

    Boaz Harrosh
     

14 Mar, 2009

1 commit

  • Since bsg.h has recently been added to the list of kernel
    headers that should be exported to the user space, this
    attachment makes bsg.h more user space "friendly".
    Specifically autotools dislike headers that don't compile
    freestanding and bsg.h's use of __u32 types (and friends)
    are not standard C (C90 or C99). The inclusion of
    linux/types.h fixes that.

    Signed-off-by: Douglas Gilbert
    Signed-off-by: James Bottomley

    Douglas Gilbert
     

23 Apr, 2008

1 commit

  • This patch adds release callback support, which is called when a bsg
    device goes away. bsg_register_queue() takes a pointer to a callback
    function. This feature is useful for stuff like sas_host that can't
    use the release callback in struct device.

    If a caller doesn't need bsg's release callback, it can call
    bsg_register_queue() with NULL pointer (e.g. scsi devices can use
    release callback in struct device so they don't need bsg's callback).

    With this patch, bsg uses kref for refcounts on bsg devices instead of
    get/put_device in fops->open/release. bsg calls put_device and the
    caller's release callback (if it was registered) in kref_put's
    release.

    Signed-off-by: FUJITA Tomonori
    Signed-off-by: James Bottomley

    FUJITA Tomonori
     

20 Apr, 2008

1 commit


31 Jul, 2007

1 commit

  • This updates sg_io_v4 structure (based on Doug's RFC, release 1.3).

    The major changes are:

    - add dout_resid field
    - increase tag size to 64 bits to comply with SAM-4 and SRP
    - add dout_iovec_count and din_iovec_count

    dout_iovec_count and din_iovec_count aren't supported now. I'm not
    sure whether they will be supported or not but they were added for the
    possible future changes.

    Signed-off-by: FUJITA Tomonori
    Signed-off-by: James Bottomley

    FUJITA Tomonori
     

25 Jul, 2007

1 commit


24 Jul, 2007

1 commit


21 Jul, 2007

1 commit

  • Currently, bsg doesn't make class backlinks (a process whereby you'd get
    a link to bsg in the device directory in the same way you get one for
    sg). This is because the bsg device is uninitialised, so the class
    device has nothing it can attach to. The fix is to make the bsg device
    point to the cdevice of the entity creating the bsg, necessitating
    changing the bsg_register_queue() prototype into a form that takes the
    generic device.

    Acked-by: FUJITA Tomonori
    Signed-off-by: James Bottomley

    James Bottomley
     

17 Jul, 2007

1 commit


16 Jul, 2007

7 commits