From 2546872ae5df2cf0a9729f4d6b8ff18fc8f647c6 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Mon, 27 Sep 2010 20:45:54 +0000 Subject: [PATCH] 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 --- scst/include/scst.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/scst/include/scst.h b/scst/include/scst.h index 0e6e45278..ac98521f0 100644 --- a/scst/include/scst.h +++ b/scst/include/scst.h @@ -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); }