Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 173636
b: refs/heads/master
c: 03b1470
h: refs/heads/master
v: v3
  • Loading branch information
Jiri Slaby authored and James Bottomley committed Dec 4, 2009
1 parent f4fcd81 commit 0e4caa3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f619106bdd9d197c947f07108af57946f19a7f7e
refs/heads/master: 03b147083a2f9a2a3fbbd2505fa88ffa3c6ab194
9 changes: 6 additions & 3 deletions trunk/drivers/scsi/scsi_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -1359,9 +1359,9 @@ static int scsi_lld_busy(struct request_queue *q)
static void scsi_kill_request(struct request *req, struct request_queue *q)
{
struct scsi_cmnd *cmd = req->special;
struct scsi_device *sdev = cmd->device;
struct scsi_target *starget = scsi_target(sdev);
struct Scsi_Host *shost = sdev->host;
struct scsi_device *sdev;
struct scsi_target *starget;
struct Scsi_Host *shost;

blk_start_request(req);

Expand All @@ -1371,6 +1371,9 @@ static void scsi_kill_request(struct request *req, struct request_queue *q)
BUG();
}

sdev = cmd->device;
starget = scsi_target(sdev);
shost = sdev->host;
scsi_init_cmd_errh(cmd);
cmd->result = DID_NO_CONNECT << 16;
atomic_inc(&cmd->device->iorequest_cnt);
Expand Down

0 comments on commit 0e4caa3

Please sign in to comment.