mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-20 12:11:26 +00:00
scst/src/scst_targ: Use READ_ONCE() instead of ACCESS_ONCE()
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7265 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -3836,8 +3836,8 @@ static int scst_exec_check_sn(struct scst_cmd **active_cmd)
|
||||
|
||||
/* dev->qerr can be changed behind our back */
|
||||
q = cmd->dev->qerr;
|
||||
/* ACCESS_ONCE doesn't work for bit fields */
|
||||
qerr = ACCESS_ONCE(q);
|
||||
/* READ_ONCE doesn't work for bit fields */
|
||||
qerr = READ_ONCE(q);
|
||||
|
||||
switch (qerr) {
|
||||
case SCST_QERR_2_RESERVED:
|
||||
|
||||
Reference in New Issue
Block a user