diff --git a/block/blk-iocost.c b/block/blk-iocost.c index 8b2aeba2e1e39..05881b7514797 100644 --- a/block/blk-iocost.c +++ b/block/blk-iocost.c @@ -3195,11 +3195,11 @@ static ssize_t ioc_weight_write(struct kernfs_open_file *of, char *buf, goto unprep; } - spin_lock(&iocg->ioc->lock); + spin_lock_irq(&iocg->ioc->lock); iocg->cfg_weight = v * WEIGHT_ONE; ioc_now(iocg->ioc, &now); weight_updated(iocg, &now); - spin_unlock(&iocg->ioc->lock); + spin_unlock_irq(&iocg->ioc->lock); ret = 0;