Commit:     40f620286dd08e29c995ca631f45e8d03f4fe1be
Parent:     3d9dd6eef888658d26ebea0cc24d15d2a93ab015
Author:     James Bottomley <[EMAIL PROTECTED]>
AuthorDate: Fri Jan 25 20:05:55 2008 -0600
Committer:  James Bottomley <[EMAIL PROTECTED]>
CommitDate: Wed Jan 30 13:14:26 2008 -0600

    [SCSI] bsg: copy the cmd_type field to the subordinate request for bidi
    This fixes a problem in SCSI where we use the (previously
    uninitialised) cmd_type via blk_pc_request() to set up the transfer in
    Acked-by: FUJITA Tomonori <[EMAIL PROTECTED]>
    Signed-off-by: James Bottomley <[EMAIL PROTECTED]>
 block/bsg.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/block/bsg.c b/block/bsg.c
index 69b0a9d..8917c51 100644
--- a/block/bsg.c
+++ b/block/bsg.c
@@ -279,6 +279,7 @@ bsg_map_hdr(struct bsg_device *bd, struct sg_io_v4 *hdr)
                        goto out;
                rq->next_rq = next_rq;
+               next_rq->cmd_type = rq->cmd_type;
                dxferp = (void*)(unsigned long)hdr->din_xferp;
                ret =  blk_rq_map_user(q, next_rq, dxferp, hdr->din_xfer_len);
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to