diff --git a/block/bfq-iosched.c b/block/bfq-iosched.c index 7d45ac451745..e65b0da1007b 100644 --- a/block/bfq-iosched.c +++ b/block/bfq-iosched.c @@ -3760,6 +3760,7 @@ static void bfq_exit_icq_bfqq(struct bfq_io_cq *bic, bool is_sync) unsigned long flags; spin_lock_irqsave(&bfqd->lock, flags); + bfqq->bic = NULL; bfq_exit_bfqq(bfqd, bfqq); bic_set_bfqq(bic, NULL, is_sync); spin_unlock_irqrestore(&bfqd->lock, flags);