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 (merge r3945 from trunk).


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.0.x@4011 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2011-12-19 16:11:43 +00:00
parent 973fa97c51
commit 218fd3fbb1

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;