Re: [block/mq] 2aa18c32fd: WARNING:at_block/mq-deadline-main.c:#dd_insert_requests

From: Bart Van Assche
Date: Fri Jun 11 2021 - 11:58:34 EST


On 6/11/21 12:04 AM, kernel test robot wrote:
> caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):

In the dmesg output I found the following:

kern :warn : [ 100.174333] WARNING: CPU: 0 PID: 1055 at
block/mq-deadline-main.c:714 dd_insert_requests+0x1b5/0x300
kern :warn : [ 100.521569] WARNING: CPU: 0 PID: 1055 at
block/mq-deadline-main.c:474 dd_dispatch_request+0x280/0x380

So these warnings are triggered by:

#if defined(CONFIG_BLK_CGROUP)
WARN_ON_ONCE(true);
#endif

and in both call stacks I found the following: blkdev_issue_discard(). I
will take a closer look.

Bart.