Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Dumb mistakes :(
  • Loading branch information
Paul Betts committed Dec 6, 2006
1 parent 9f62a91 commit 1bf8524
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions osd_initiator/kernel/suo.c
Expand Up @@ -969,7 +969,8 @@ suo_write(struct file *filp, const char __user *buf, size_t count, loff_t *ppos)
ret = -EFAULT;
goto out_putreq;
}
dprintk("request_queue = 0x%p", ret->request_queue);

dprintk("request_queue = 0x%p\n", req->q);

/* Check the command itself */
ret = check_osd_command(req, &ureq);
Expand Down Expand Up @@ -1225,7 +1226,7 @@ static int suo_dispatch_command(struct scsi_device* sdp, struct file* filp, stru
req->timeout = SD_TIMEOUT;
req->cmd_type = REQ_TYPE_BLOCK_PC; /* always, we supply command */
req->cmd_flags |= REQ_QUIET | REQ_PREEMPT;
req->rq_disk = &sdkp->gd;
req->rq_disk = sdkp->gd;
dprintk("request_queue = 0x%p\n", req->q);

/* Set up the response */
Expand All @@ -1246,7 +1247,7 @@ static int suo_dispatch_command(struct scsi_device* sdp, struct file* filp, stru
req->end_io = suo_rq_complete;

dprintk("request_queue = 0x%p\n", req->q);
blk_execute_rq_nowait(req->q, &sdkp->gd, req, 0, req->end_io);
blk_execute_rq_nowait(req->q, sdkp->gd, req, 0, req->end_io);

spin_lock(&sdkp->inflight_lock);
BUG_ON( atomic_add_negative(1, &sdkp->inflight) );
Expand Down

0 comments on commit 1bf8524

Please sign in to comment.