Patent ID: 11954332
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 3:
4. The method according to claim 1, wherein each storage block comprises a plurality of sub-blocks, each sub-block is a minimum unit on which the erase operation is performed, each storage area supports a read+write mode and a read+erase mode, and when the storage area is used to write data, the storage area is set to the read+write mode; when the storage area is used to perform an erase operation, the storage area is set to the read+erase mode; and the determining a storage block accessed by the IO request comprises:
selecting a storage area in the read+write mode from the plurality of storage areas;
determining whether read and write pressure undertaken by the selected storage area exceeds a threshold; and
when the read and write pressure undertaken by the selected storage area does not exceed the threshold, using the selected storage area as the storage area in which no erase operation is performed.