Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a5567932 authored by Dan Carpenter's avatar Dan Carpenter Committed by Jens Axboe
Browse files

blkcg: change a spin_lock() to spin_lock_irq()



Smatch complains that we re-enable IRQs twice.  It looks like we forgot
to disable them here on the spin_trylock() failure path.  This was added
in 9f13ef67 "blkcg: use double locking instead of RCU for blkg
synchronization".

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com&gt;`>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent eb7d8c07
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1601,7 +1601,7 @@ static int blkiocg_pre_destroy(struct cgroup_subsys *subsys,
		} else {
		} else {
			spin_unlock_irq(&blkcg->lock);
			spin_unlock_irq(&blkcg->lock);
			cpu_relax();
			cpu_relax();
			spin_lock(&blkcg->lock);
			spin_lock_irq(&blkcg->lock);
		}
		}
	}
	}