[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230504124828.679770-1-linan666@huaweicloud.com>
Date: Thu, 4 May 2023 20:48:17 +0800
From: linan666@...weicloud.com
To: axboe@...nel.dk, linan122@...wei.com, vishal.l.verma@...el.com,
dan.j.williams@...el.com
Cc: linux-block@...r.kernel.org, linux-kernel@...r.kernel.org,
yukuai3@...wei.com, yi.zhang@...wei.com, houtao1@...wei.com,
yangerkun@...wei.com
Subject: [PATCH v2 00/11] block/badblocks: fix badblocks setting error
From: Li Nan <linan122@...wei.com>
The patch series fix the bug of setting badblocks, which may not match
expectations in complex scenarios. Optimize the code to make it more
readable at the same time.
Changes in v2:
- add missing patch "block/badblocks: change some members of badblocks
to bool"
Li Nan (11):
block/badblocks: change some members of badblocks to bool
block/badblocks: only set bb->changed when badblocks changes
block/badblocks: fix badblocks loss when badblocks combine
block/badblocks: fix badblocks overlap
block/badblocks: fix the bug of reverse order
block/badblocks: fix ack set fail in badblocks_set
block/badblocks: check bb->count instead of 'hi > lo'
block/badblocks: factor out a helper to merge badblocks
block/badblocks: factor out a helper to combine badblocks
block/badblocks: factor out a helper to create badblocks
block/badblocks: try to merge badblocks as much as possible
block/badblocks.c | 310 +++++++++++++++++++++++---------------
include/linux/badblocks.h | 10 +-
2 files changed, 197 insertions(+), 123 deletions(-)
--
2.31.1
Powered by blists - more mailing lists