CROSS-REFERENCE TO RELATED APPLICATIONS

This application claims priority to Chinese Application No. 201911176961.7 filed on Nov. 26, 2019. Chinese Application No. 201911176961.7 is hereby incorporated by reference in its entirety.

FIELD

Various implementations of the present disclosure relate to the management of a storage system, and more specifically, to a method, device and computer program product for managing an access request in a storage system.

BACKGROUND

With the development of data storage technology, various data storage devices now provide users with increasingly large data storage capability, and also their data access speed has been greatly improved. As users continuously write and delete data from a storage system, fragments will arise in storage space of the storage system. Here the fragments mean that free storage space in the storage system is not contiguous, but free storage space and allocated storage space are too small and interlaced. At this point, garbage collection needs to be performed on the storage system, so as to ensure that free extents and allocated extents in the storage system are distributed in a contiguous way as far as possible. Therefore, a focus of research has become a more effective way for managing garbage collection and subsequent access request operations in the storage system.

SUMMARY

Therefore, it is desirable to develop and implement a technical solution for managing a storage system more effectively. It is desired that the technical solution be compatible with an existing application system to more effectively manage tasks in a storage system by reconstructing configurations of the existing storage system.

According to a first aspect of the present disclosure, a method is provided for managing an access request in a storage system. In the method, based on an access request to the storage system, an address range of a data object involved in the access request is obtained. Whether a garbage collection operation is performed on a data extent within the address range or not is determined based on an association relationship between a group of address ranges and a group of operations being performed on a group of data extents within the group of address ranges. An access type of the access request is identified in accordance with determining that the garbage collection operation is performed on a data extent within the address range. The access request is responded to based on the access type by using a data extent within an address range in the storage system on which no garbage collection operation is performed.

According to a second aspect of the present disclosure, an electronic device is provided, and the electronic device includes: at least one processor; and a memory coupled to the at least one processor, the memory having instructions stored thereon, the instructions, when executed by the at least one processor, causing the device to perform acts. The acts include: obtaining, based on an access request to the storage system, an address range of a data object involved in the access request; determining whether a garbage collection operation is performed on a data extent within the address range or not, based on an association relationship between a group of address ranges and a group of operations performed on a group of data extents within the group of address ranges; identifying an access type of the access request in accordance with determining that the garbage collection operation is performed on a data extent within the address range; and responding to the access request based on the access type by using a data extent within an address range in the storage system on which no garbage collection operation is performed.

According to a third aspect of the present disclosure, a computer program product is provided. The computer program product is tangibly stored on a non-transitory computer-readable medium and includes machine-executable instructions which are used to implement a method according to the first aspect of the present disclosure.

