Patch "block: ensure bdi->io_pages is always initialized" has been added to the 5.8-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    block: ensure bdi->io_pages is always initialized

to the 5.8-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     block-ensure-bdi-io_pages-is-always-initialized.patch
and it can be found in the queue-5.8 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.


>From de1b0ee490eafdf65fac9eef9925391a8369f2dc Mon Sep 17 00:00:00 2001
From: Jens Axboe <axboe@xxxxxxxxx>
Date: Mon, 31 Aug 2020 11:20:02 -0600
Subject: block: ensure bdi->io_pages is always initialized

From: Jens Axboe <axboe@xxxxxxxxx>

commit de1b0ee490eafdf65fac9eef9925391a8369f2dc upstream.

If a driver leaves the limit settings as the defaults, then we don't
initialize bdi->io_pages. This means that file systems may need to
work around bdi->io_pages == 0, which is somewhat messy.

Initialize the default value just like we do for ->ra_pages.

Cc: stable@xxxxxxxxxxxxxxx
Fixes: 9491ae4aade6 ("mm: don't cap request size based on read-ahead setting")
Reported-by: OGAWA Hirofumi <hirofumi@xxxxxxxxxxxxxxxxxx>
Reviewed-by: Christoph Hellwig <hch@xxxxxx>
Signed-off-by: Jens Axboe <axboe@xxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

---
 block/blk-core.c |    1 +
 1 file changed, 1 insertion(+)

--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -526,6 +526,7 @@ struct request_queue *__blk_alloc_queue(
 		goto fail_stats;
 
 	q->backing_dev_info->ra_pages = VM_READAHEAD_PAGES;
+	q->backing_dev_info->io_pages = VM_READAHEAD_PAGES;
 	q->backing_dev_info->capabilities = BDI_CAP_CGROUP_WRITEBACK;
 	q->node = node_id;
 


Patches currently in stable-queue which might be from axboe@xxxxxxxxx are

queue-5.8/block-ensure-bdi-io_pages-is-always-initialized.patch
queue-5.8/block-allow-for_each_bvec-to-support-zero-len-bvec.patch
queue-5.8/block-fix-locking-in-bdev_del_partition.patch
queue-5.8/blk-stat-make-q-stats-lock-irqsafe.patch
queue-5.8/nbd-restore-default-timeout-when-setting-it-to-zero.patch
queue-5.8/io_uring-fix-removing-the-wrong-file-in-__io_sqe_files_update.patch
queue-5.8/libata-implement-ata_horkage_max_trim_128m-and-apply-to-sandisks.patch
queue-5.8/io_uring-set-table-files-to-null-when-io_sqe_file_register-failed.patch
queue-5.8/nvmet-disable-keep-alive-timer-when-kato-is-cleared-.patch
queue-5.8/blk-iocost-ioc_pd_free-shouldn-t-assume-irq-disabled.patch



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux