Method and apparatus for reducing read latency
AssigneeHuawei Technologies Co., Ltd.
InventorYansong Li
Life of this patent
Estimating the term…
Abstract
A method and an apparatus for reducing a read latency are provided. The method includes: when one or more flash chips corresponding to a read command are in a busy state, setting data read from the one or more flash chips in a busy state to wrong data; obtaining, according to the wrong data and data read from other flash chips, reconstructed correct data, and reporting the correct data. By using the present invention, data read from a flash chip is set to wrong data, and reconstructed correct data is obtained according to the wrong data and data read from other flash chips. In this way, when the flash chip is in a busy state, it can be avoided that a read operation is blocked by an erase operation or a write operation, thereby effectively reducing latency and improving a performance of a storage system.
Claims10
A method for reducing a read latency, comprising:
- setting data read from one or more flash chips to a combination of any data that does not comply with a flash data check rule when the one or more flash chips corresponding to a read command are in a busy state;
- performing a data check on the read data, wherein the data check results in an error result;
- obtaining data read from other flash chips in response to the error result of the data check in order to reconstruct correct data;
- keeping an error counter unchanged when it is detected that the read data is wrong due to setting the read data when the one or more flash chips corresponding to the read command are in the busy state;
- changing the error counter when it is detected that the read data is wrong not due to setting the read data when the one or more flash chips corresponding to the read command are in the busy state;
- and
- reporting the correct data.
An apparatus for reducing a read latency, comprising:
- an error setting unit configured to:
- set data read from one or more flash chips to a combination of any data that does not comply with a flash data check rule when the one or more flash chips corresponding to a read command are in a busy state;
- performing a data check on the read data, wherein the data check results in an error result;
- keeping an error counter unchanged when detected that the read data is wrong due to setting the read data when the one or more flash chips corresponding to the read command are in the busy state;
- and
- changing the error counter when it is detected that the read data is wrong not due to setting the read data when the one or more flash chips corresponding to the read command are in the busy state;
- and
- a reconstructing and reporting unit configured to:
- obtain data read from other flash chips in response to the error result of the data check in order to reconstruct correct data;
- and
- report the correct data.
Dependencies are inferred from the claim text.