disk_work.result is set by disk_cmd_done() and read by disk_exec().

Since there is a complete_all() / wait_for_completion() pair between both
accesses the volatile keyword is not necessary here.

BSD-signed-off-by: Bart Van Assche <bvanassche@acm.org>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3945 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2011-12-02 02:24:41 +00:00
parent 152a2ad8c1
commit f8c3b26620
+1 -1
View File
@@ -363,7 +363,7 @@ static bool disk_on_sg_tablesize_low(struct scst_cmd *cmd)
struct disk_work {
struct scst_cmd *cmd;
struct completion disk_work_cmpl;
volatile int result;
int result;
unsigned int left;
uint64_t save_lba;
unsigned int save_len;