+2
−0
Loading
mainline inclusion from mainline-v6.3-rc1 commit a3df2e45 bugzilla: https://gitee.com/openeuler/kernel/issues/IB7FJU Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a3df2e456c0f9db4cc7f2013eb0beb853945b937 -------------------------------- We have BIO_FLAG_LAST in the enum for bio specific flags, but it's not used to check that we're not exceeding the size of them. Add such a check. Reviewed-by:Damien Le Moal <damien.lemoal@opensource.wdc.com> Signed-off-by:
Jens Axboe <axboe@kernel.dk> Conflicts: block/bio.c [Commit 49d1ec85 ("block: manage bio slab cache by xarray") remove bio_slabs/bio_slab_nr/bio_slab_max.] Signed-off-by:
Li Lingfeng <lilingfeng3@huawei.com> Signed-off-by:
Li Nan <linan122@huawei.com>