Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 15653
b: refs/heads/master
c: 0d95716
h: refs/heads/master
i:
  15651: eb1998c
v: v3
  • Loading branch information
Mike Christie authored and James Bottomley committed Dec 15, 2005
1 parent 982fc16 commit 88260ff
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 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: 17e01f216b611fc46956dcd9063aec4de75991e3
refs/heads/master: 0d95716d6a1308c465d8c17ed1a217628936bb0c
8 changes: 7 additions & 1 deletion trunk/drivers/scsi/scsi_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -1247,7 +1247,13 @@ static int scsi_issue_flush_fn(request_queue_t *q, struct gendisk *disk,
static void scsi_generic_done(struct scsi_cmnd *cmd)
{
BUG_ON(!blk_pc_request(cmd->request));
scsi_io_completion(cmd, cmd->result == 0 ? cmd->bufflen : 0, 0);
/*
* This will complete the whole command with uptodate=1 so
* as far as the block layer is concerned the command completed
* successfully. Since this is a REQ_BLOCK_PC command the
* caller should check the request's errors value
*/
scsi_io_completion(cmd, cmd->bufflen, 0);
}

static int scsi_prep_fn(struct request_queue *q, struct request *req)
Expand Down
6 changes: 5 additions & 1 deletion trunk/drivers/scsi/st.c
Original file line number Diff line number Diff line change
Expand Up @@ -4185,7 +4185,11 @@ static void scsi_tape_release(struct kref *kref)

static void st_intr(struct scsi_cmnd *SCpnt)
{
scsi_io_completion(SCpnt, (SCpnt->result ? 0: SCpnt->bufflen), 1);
/*
* The caller should be checking the request's errors
* value.
*/
scsi_io_completion(SCpnt, SCpnt->bufflen, 0);
}

/*
Expand Down

0 comments on commit 88260ff

Please sign in to comment.