Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 268052
b: refs/heads/master
c: fa23b8c
h: refs/heads/master
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Aug 29, 2011
1 parent 8da28ce commit 32ddef2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 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: 3612ef99b05f107d5cd85f6bc45b94ed880d78f3
refs/heads/master: fa23b8c78fefae4e8033a28e685673c35ff10789
10 changes: 4 additions & 6 deletions trunk/drivers/staging/hv/storvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -560,12 +560,10 @@ static int storvsc_queuecommand_lck(struct scsi_cmnd *scmnd,
ALIGN(scsi_bufflen(scmnd), PAGE_SIZE) >>
PAGE_SHIFT;

/*
* FIXME: We can optimize on reads by just skipping
* this
*/
copy_to_bounce_buffer(sgl, cmd_request->bounce_sgl,
scsi_sg_count(scmnd));
if (vm_srb->data_in == WRITE_TYPE)
copy_to_bounce_buffer(sgl,
cmd_request->bounce_sgl,
scsi_sg_count(scmnd));

sgl = cmd_request->bounce_sgl;
sg_count = cmd_request->bounce_sgl_count;
Expand Down

0 comments on commit 32ddef2

Please sign in to comment.