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:
Vladislav Bolkhovitin
2010-09-27 20:45:54 +00:00
parent 08bee7feb8
commit 2546872ae5

View File

@@ -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);
}