Set the default loop driver queue depth to 31
Work around the crashes in bt_for_each() by setting the queue depth at
boot time. An example of a kernel crash that should be fixed by this CL:
Unable to handle kernel paging request at virtual address ffffffefa2c84630
Call trace:
bt_for_each+0xd0/0x11c
blk_mq_queue_tag_busy_iter+0xc4/0x180
blk_mq_in_flight+0x34/0x5c
part_in_flight+0x18/0x64
part_round_stats+0x8c/0x19c
blk_account_io_start+0x164/0x2a0
blk_mq_make_request+0x374/0x714
generic_make_request+0x108/0x2d4
submit_bio+0x78/0x240
submit_bh_wbc+0x148/0x190
__bread_gfp+0xc0/0x188
ext4_fill_super+0x230/0x32b0
mount_bdev+0x188/0x1d0
ext4_mount+0x18/0x24
mount_fs+0xb4/0x190
vfs_kern_mount+0x7c/0x208
do_mount+0x508/0xc70
Bug: 265546875
Change-Id: I18ffe338a7e4078f0bfe0c3ffbdddce7fe0140d2
Signed-off-by: Bart Van Assche <bvanassche@google.com>
1 file changed