** Package changed: ubuntu => linux (Ubuntu) ** Description changed:
Description: The badblocks routines we used from md have a bug where if a new range being added overlaps with multiple distinct ranges, it only merges with the first one. Consider the following operations: badblocks_set(bb, 32, 1); badblocks_set(bb, 34, 1); badblocks_set(bb, 36, 1); badblocks_show will now correctly report: 32 1 34 1 36 1 Now if I do: badblocks_set(bb, 32, 12); Ideally, this should collapse all ranges into a single (32, 12).. But looks like badblocks_set only merges one set of adjacent mergeable ranges, and then returns, resulting in: 32 3 36 1 Now if I add the same (32, 12) range again, I get: 32 5 as one more set is merged. And finally after adding (32, 12) one final time, I get the expected 32 12. Target Kernel:TBD - Target Release:19.04 + Target Release:19.10 ** Summary changed: - [Bug]Crystal Ridge - 4.15: fix badblocks routines not merging more than one range at a time + [Bug]Crystal Ridge: fix badblocks routines not merging more than one range at a time ** Tags removed: intel-kernel-19.04 ** Tags added: intel-kernel-19.10 -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1744634 Title: [Bug]Crystal Ridge: fix badblocks routines not merging more than one range at a time Status in intel: Triaged Status in linux package in Ubuntu: New Bug description: Description: The badblocks routines we used from md have a bug where if a new range being added overlaps with multiple distinct ranges, it only merges with the first one. Consider the following operations: badblocks_set(bb, 32, 1); badblocks_set(bb, 34, 1); badblocks_set(bb, 36, 1); badblocks_show will now correctly report: 32 1 34 1 36 1 Now if I do: badblocks_set(bb, 32, 12); Ideally, this should collapse all ranges into a single (32, 12).. But looks like badblocks_set only merges one set of adjacent mergeable ranges, and then returns, resulting in: 32 3 36 1 Now if I add the same (32, 12) range again, I get: 32 5 as one more set is merged. And finally after adding (32, 12) one final time, I get the expected 32 12. Target Kernel:TBD Target Release:19.10 To manage notifications about this bug go to: https://bugs.launchpad.net/intel/+bug/1744634/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp