Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 167222
b: refs/heads/master
c: e27168f
h: refs/heads/master
v: v3
  • Loading branch information
Christof Schmitt authored and James Bottomley committed Oct 2, 2009
1 parent 587c5da commit 008f984
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: 5915136d4d3954867cced8a2297bddd16caf36a1
refs/heads/master: e27168f8c337b12b8aa8d59c3123c79d2f83603d
10 changes: 5 additions & 5 deletions trunk/drivers/scsi/sg.c
Original file line number Diff line number Diff line change
Expand Up @@ -1708,18 +1708,18 @@ static int sg_finish_rem_req(Sg_request * srp)
Sg_scatter_hold *req_schp = &srp->data;

SCSI_LOG_TIMEOUT(4, printk("sg_finish_rem_req: res_used=%d\n", (int) srp->res_used));
if (srp->res_used)
sg_unlink_reserve(sfp, srp);
else
sg_remove_scat(req_schp);

if (srp->rq) {
if (srp->bio)
ret = blk_rq_unmap_user(srp->bio);

blk_put_request(srp->rq);
}

if (srp->res_used)
sg_unlink_reserve(sfp, srp);
else
sg_remove_scat(req_schp);

sg_remove_request(sfp, srp);

return ret;
Expand Down

0 comments on commit 008f984

Please sign in to comment.