Instruction conflict detection method, device, device and storage medium for solid-state hard disk
A technology of solid-state disk and conflict detection, which is applied in error detection/correction, generation of response errors, instruments, etc., can solve problems such as trim instruction and write instruction blocking, achieve optimization complexity, improve system performance, and solve mutual blocking problems Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0050] Please refer to Figure 4 , the first embodiment of the present invention is: a method for detecting instruction conflict of a solid state disk (Solid State Disk, SSD), which can be applied to the conflict detection of a write instruction (write instruction) and a trim instruction, and simplifies the existing write-trim instruction The complexity of the conflict detection algorithm, and solve the problem that the write instruction and the trim instruction block each other.
[0051] like Figure 4 shown, including the following steps:
[0052] S401: When a write instruction is received, write data into a corresponding block.
[0053] In this embodiment, in the process of executing the write instruction, the SSD firmware does not need to perform any detection and processing on the trim instruction at all, and directly performs the disk flushing operation.
[0054] S402: When the trim instruction is received, obtain the sequence number and pointer value of the block to ...
Embodiment 2
[0069] Please refer to figure 2 The second embodiment of the present invention is an instruction conflict detection device for a solid-state hard disk, which can execute the instruction conflict detection method for a solid-state hard disk provided by the first embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method. The device can be implemented by software / or hardware, and specifically includes:
[0070] The writing module 201 is used for writing data into the corresponding block when receiving the writing instruction;
[0071] The first obtaining module 202 is configured to obtain the serial number of the block in which data is currently being written when the trim instruction is received, as the first serial number, and according to the L2P table, obtain the sequence of blocks corresponding to the physical area that is disabled for deletion number, as the second serial number;
[0072] The first markin...
Embodiment 3
[0081] Please refer to image 3 , the third embodiment of the present invention is: an electronic device, the electronic device includes:
[0082] one or more processors 301;
[0083] storage device 302 for storing one or more programs;
[0084] When the one or more programs are executed by the one or more processors 301, the one or more processors 301 implement each process in the above-mentioned embodiment of the instruction conflict detection method for a solid-state disk, and The same technical effect can be achieved, and in order to avoid repetition, details are not repeated here.
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


