mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-18 03:01:26 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user