[PATCH 0/4] block: fix partition use-after-free and optimization

Ming Lei
2020-05-07T08:52:57Z

Hi,

The 1st patch fixes one use-after-free on cached last_lookup partition.

The other 3 patches optimizes partition uses in IO path.

Ming Lei (4):
block: fix use-after-free on cached last_lookup partition
block: only define 'nr_sects_seq' in hd_part for 32bit SMP
block: re-organize fields of 'struct hd_part'
block: don't hold part0's refcount in IO path

block/blk-core.c | 15 ++-------------
block/genhd.c | 7 +++++--
block/partitions/core.c | 14 ++++++++++++--
include/linux/genhd.h | 25 ++++++++++++++++++-------
4 files changed, 37 insertions(+), 24 deletions(-)

Cc: Yufen Yu <yuyufen@huawei.com>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Hou Tao <houtao1@huawei.com>
--
2.25.2