mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-18 03:01:26 +00:00
Setting may_need_dma_sync in scst_get_sg_X_page_first() is not needed, because it doesn't map the page and CPU doesn't access the data directly
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2293 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -3521,7 +3521,6 @@ static inline int scst_get_sg_page_first(struct scst_cmd *cmd,
|
||||
}
|
||||
cmd->get_sg_buf_entry_num = 0;
|
||||
cmd->get_sg_buf_cur_sg_entry = cmd->sg;
|
||||
cmd->may_need_dma_sync = 1;
|
||||
return __scst_get_sg_page(cmd, cmd->sg_cnt, page, offset);
|
||||
}
|
||||
|
||||
@@ -3547,7 +3546,6 @@ static inline int scst_get_out_sg_page_first(struct scst_cmd *cmd,
|
||||
}
|
||||
cmd->get_sg_buf_entry_num = 0;
|
||||
cmd->get_sg_buf_cur_sg_entry = cmd->out_sg;
|
||||
cmd->may_need_dma_sync = 1;
|
||||
return __scst_get_sg_page(cmd, cmd->out_sg_cnt, page, offset);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user