Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 80591
b: refs/heads/master
c: b8de163
h: refs/heads/master
i:
  80589: 52daf04
  80587: 2b5284c
  80583: ac17e81
  80575: 9c68d8b
v: v3
  • Loading branch information
Kiyoshi Ueda authored and James Bottomley committed Jan 30, 2008
1 parent b4f9d5f commit ca29d3e
Show file tree
Hide file tree
Showing 2 changed files with 11 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: 6f9a35e2dafa0f855ab051c11bdbf739745ff6f5
refs/heads/master: b8de16318410f6f8611a879678a531237e4aadc9
12 changes: 10 additions & 2 deletions trunk/drivers/scsi/scsi_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -812,8 +812,16 @@ EXPORT_SYMBOL(scsi_release_buffers);
*/
void scsi_end_bidi_request(struct scsi_cmnd *cmd)
{
blk_end_bidi_request(cmd->request, 0, scsi_out(cmd)->resid,
scsi_in(cmd)->resid);
struct request *req = cmd->request;
unsigned int dlen = req->data_len;
unsigned int next_dlen = req->next_rq->data_len;

req->data_len = scsi_out(cmd)->resid;
req->next_rq->data_len = scsi_in(cmd)->resid;

/* The req and req->next_rq have not been completed */
BUG_ON(blk_end_bidi_request(req, 0, dlen, next_dlen));

scsi_release_buffers(cmd);

/*
Expand Down

0 comments on commit ca29d3e

Please sign in to comment.