mirror of https://gitee.com/openkylin/linux.git
s390/cio: fix unlocked access of global bitmap
Access to the slow_subchannel_set has to be secured via the slow_subchannel_lock. Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
parent
57b5918c33
commit
eb072a7996
|
@ -546,7 +546,9 @@ static int slow_eval_unknown_fn(struct subchannel_id schid, void *data)
|
|||
case -ENOMEM:
|
||||
case -EIO:
|
||||
/* These should abort looping */
|
||||
spin_lock_irq(&slow_subchannel_lock);
|
||||
idset_sch_del_subseq(slow_subchannel_set, schid);
|
||||
spin_unlock_irq(&slow_subchannel_lock);
|
||||
break;
|
||||
default:
|
||||
rc = 0;
|
||||
|
|
Loading…
Reference in New Issue