SSD Open Block Mapping Correction After Power-Up
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
The inconsistency between the SLC open block before an SSD is powered down and the reconstructed SLC open block based on SLC block info in the power-up process leads to an open block overwriting issue, causing potential read uncorrectable bit errors and recovery failures.
Innovation Solution
A method and apparatus that corrects the SLC block by obtaining a first physical address in the latest mapping relationship recorded by the DDR after powering up the SSD, querying the second physical address of the open block in the SLC block info table, and replacing it with the first physical address to ensure consistency and accuracy of the open block info.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If the entire SLC block info is written into the SLC blocks during the power-down process, then the metadata is saved for persistence, but the SLC open block before power-down becomes inconsistent with the reconstructed SLC open block after power-up, causing an open block overwriting issue
Solution Approach 1:
The patent applies preliminary action by recording the physical address of the SLC open block into a super block before the power-down process completes. This pre-recorded address is then used during power-up to restore the correct open block mapping, preventing the inconsistency that would otherwise occur between the pre-power-down and post-power-up states. The super block serves as a preliminary record that guides the recovery process.
Solution Approach 2:
The super block acts as an intermediary structure that stores the physical address information of the SLC open block. During normal operation, the super block records the correct mapping. During power-up, the super block provides the authoritative address information that replaces the potentially incorrect address in the SLC block info table, thus mediating between the persistent storage and the volatile memory state.
2Ease of operation
If the SLC open block is reconstructed based on SLC block info after power-up, then the block management structure is restored, but the reconstructed open block may differ from the actual open block, leading to data overwriting
Solution Approach 1:
The patent implements feedback by using the super block to provide verification and correction information during the power-up process. The system reconstructs the SLC block info table from persistent storage, then uses the super block's recorded physical address as feedback to verify and correct the reconstructed open block mapping. This feedback mechanism ensures that the final state matches the pre-power-down state.
Solution Approach 2:
The super block pre-records the authoritative physical address of the SLC open block before power-down. During power-up, this pre-recorded information is used to guide the restoration process, ensuring that the reconstructed block management structure accurately reflects the state before power-loss, thereby preventing data integrity issues.
Data Source
AI summary
Embodiments of the present application provide a method and apparatus for correcting a block of a solid-state drive, an electronic device, and a storage medium. The method includes: after powering up the SSD, obtaining a first physical address in a latest mapping relationship recorded by a super block of a double data rate (DDR); querying a second physical address corresponding to an open block in a single layer cell (SLC) block info table of the DDR; and replacing the second physical address of the open block in the SLC block info table with the first physical address. The open block in the SLC block info table is corrected; correctness of the open block in the SLC block info table of the DDR after the SSD is powered up is ensured; and stability of operation of an SSD system is improved.


