BACKGROUND

The present disclosure relates generally to managing system data for a data storage system.

Data storage systems, such as solid state drives (SSD), maintain system data for managing operations and performance in the data storage systems. In addition to processing host commands, data storage systems perform maintenance operations that may include internal data movement operations. However, read failures during maintenance operations can make maintaining accurate system data difficult.

SUMMARY

Aspects of the subject technology relate to a method for managing a data storage system. The method may include receiving a host write command to write host data associated with a logical address to a non-volatile memory. The method may also include determining a first physical address in the non-volatile memory mapped to the logical address in an address mapping table. The method may further include checking for an indicator that the first physical address is bad. The method may also include if the first physical address is indicated as bad, maintaining a valid count associated with a first set of physical addresses at a current value, wherein the first set of physical addresses comprises the first physical address. The method may include if the first physical address is not indicated as bad, marking the first physical address as invalid and decrementing the valid count associated with the first set of physical addresses.

In certain aspects, the subject technology also relates to a data storage system is provided. The data storage system may include means for receiving a host write command to write host data associated with a logical address to a non-volatile memory. The data storage system may also include means for determining a first physical address in the non-volatile memory mapped to the logical address in an address mapping table. The data storage system may also include means for checking for an indicator that the first physical address is bad. The data storage system may further include if the first physical address is indicated as bad, means for maintaining a valid count associated with a first set of physical addresses at a current value, wherein the first set of physical addresses comprises the first physical address. The data storage system may further include if the first physical address is not indicated as bad, means for marking the first physical address as invalid and decrementing the valid count associated with the first set of physical addresses.

Aspects of the subject technology also relate to a data storage system including a plurality of storage devices, each storage device comprising a plurality of non-volatile memory die, and a controller coupled to the plurality of storage devices. The controller may be configured to receive a host write command to write host data associated with a logical address to a non-volatile memory. The controller may also be configured to determine a first physical address in the non-volatile memory mapped to the logical address in an address mapping table. The controller may further be configured to check for an indicator that the first physical address is bad. The controller may be configured to if the first physical address is indicated as bad, maintain a valid count associated with a first set of physical addresses at a current value, wherein the first set of physical addresses comprises the first physical address. The controller may also be configured to if the first physical address is not indicated as bad, mark the first physical address as invalid and decrementing the valid count associated with the first set of physical addresses. The controller may further be configured to initiate a write operation to write the host data associated with the logical address to a second physical address in the non-volatile memory. The controller may further be configured to update the address mapping table to map the logical address to the second physical address.

It is understood that other configurations of the present disclosure will become readily apparent to those skilled in the art from the following detailed description, wherein various configurations of the present disclosure are shown and described by way of illustration. As will be realized, the present disclosure is capable of other and different configurations and its several details are capable of modification in various other respects, all without departing from the scope of the present disclosure. Accordingly, the drawings and detailed description are to be regarded as illustrative in nature and not as restrictive.

