Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 85891
b: refs/heads/master
c: db0a2e0
h: refs/heads/master
i:
  85889: 8a0911c
  85887: 7b88cee
v: v3
  • Loading branch information
Tejun Heo authored and Jens Axboe committed Feb 19, 2008
1 parent f2585b1 commit c912a63
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2fb98e8414c42cb14698833aac640b143b9ade4f
refs/heads/master: db0a2e0099be3a1cff55879225881465f16c67d3
3 changes: 3 additions & 0 deletions trunk/block/blk-merge.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,9 @@ int blk_rq_map_sg(struct request_queue *q, struct request *rq,
} /* segments in rq */

if (q->dma_drain_size && q->dma_drain_needed(rq)) {
if (rq->cmd_flags & REQ_RW)
memset(q->dma_drain_buffer, 0, q->dma_drain_size);

sg->page_link &= ~0x02;
sg = sg_next(sg);
sg_set_page(sg, virt_to_page(q->dma_drain_buffer),
Expand Down

0 comments on commit c912a63

Please sign in to comment.