Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 165776
b: refs/heads/master
c: 4b652f0
h: refs/heads/master
v: v3
  • Loading branch information
Dan Williams committed Sep 9, 2009
1 parent f0dfd4d commit 06d5cd2
Show file tree
Hide file tree
Showing 2 changed files with 11 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: a309218acee8606f7e235da20cc826eb06d9b0f6
refs/heads/master: 4b652f0db3be891c7b76b109c3b55003b920fc96
10 changes: 10 additions & 0 deletions trunk/drivers/dma/iovlock.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,11 @@ dma_cookie_t dma_memcpy_to_iovec(struct dma_chan *chan, struct iovec *iov,
iov_byte_offset,
kdata,
copy);
/* poll for a descriptor slot */
if (unlikely(dma_cookie < 0)) {
dma_async_issue_pending(chan);
continue;
}

len -= copy;
iov[iovec_idx].iov_len -= copy;
Expand Down Expand Up @@ -248,6 +253,11 @@ dma_cookie_t dma_memcpy_pg_to_iovec(struct dma_chan *chan, struct iovec *iov,
page,
offset,
copy);
/* poll for a descriptor slot */
if (unlikely(dma_cookie < 0)) {
dma_async_issue_pending(chan);
continue;
}

len -= copy;
iov[iovec_idx].iov_len -= copy;
Expand Down

0 comments on commit 06d5cd2

Please sign in to comment.