Memory management method, memory control circuit unit, and memory storage apparatus
First Claim
1. A memory management method for a rewritable non-volatile memory module, the memory management method comprising:
- storing a plurality of first events into a work queue, wherein each of the first events respectively configured to execute different one of a plurality of first works;
when a special event is determined as not occurring, executing sequentially the plurality of the first works respectively corresponding to the plurality of first events in work queue;
when the special event is determined as occurring, determining type of each of the plurality of the first events in the work queue, and, according to the type of one of the first events, adjusting work to be executed by the one of the first events from a first work originally corresponding to the one of the first events to a second work, wherein the first work to be adjusted is different from the adjusted second work, and the second work is determined according to the type of the one of the first events; and
waiting to execute the second work after the adjustment of the work to be executed by the one of the first events is completed.
1 Assignment
0 Petitions
Accused Products
Abstract
A memory management method for a rewritable non-volatile memory module is provided. The memory management method includes determining whether a special event occurs; determining a type of at least one event in a work queue if the special event occurs, wherein the work queue stores a plurality of events and each event among the events is respectively configured to execute one corresponding work; adjusting the work executed by the at least one event from a first work to a second work according to the type of the at least one event, wherein the first work is different from the second work; and waiting to execute the second work after adjusting the first work to the second work.
-
Citations
30 Claims
-
1. A memory management method for a rewritable non-volatile memory module, the memory management method comprising:
-
storing a plurality of first events into a work queue, wherein each of the first events respectively configured to execute different one of a plurality of first works; when a special event is determined as not occurring, executing sequentially the plurality of the first works respectively corresponding to the plurality of first events in work queue; when the special event is determined as occurring, determining type of each of the plurality of the first events in the work queue, and, according to the type of one of the first events, adjusting work to be executed by the one of the first events from a first work originally corresponding to the one of the first events to a second work, wherein the first work to be adjusted is different from the adjusted second work, and the second work is determined according to the type of the one of the first events; and waiting to execute the second work after the adjustment of the work to be executed by the one of the first events is completed. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A memory control circuit unit for controlling a memory storage apparatus, the memory control circuit unit comprising:
-
a host interface coupled to a host system; a memory interface coupled to a rewritable non-volatile memory module; and a memory management circuit coupled to the host interface and the memory interface, wherein the memory management circuit is configured to store a plurality of first events into a work queue, wherein each of the first events respectively configured to execute different one of a plurality of first works, wherein the memory management circuit is further configured to, when a special event is determined as not occurring, execute sequentially the plurality of the first works respectively corresponding to the plurality of first events in the work queue, wherein the memory management circuit is further configured to, when the special event is determined as occurring, determine type of each of the plurality of the first events in the work queue, and, according to the type of one of the first events, adjust work to be executed by the one of the first events from a first work originally corresponding to the one of the first events to a second work, wherein the first work to be adjusted is different from the adjusted second work, and the second work is determined according to the type of the one of the first events, wherein the memory management circuit is further configured to wait to execute the second work after the adjustment of the work to be executed by the one of the first events is completed. - View Dependent Claims (12, 13, 14, 15, 16, 17, 18, 19, 20)
-
-
21. A memory storage apparatus comprising:
-
a connection interface unit configured to couple to a host system; a rewritable non-volatile memory module; and a memory control circuit unit coupled to the connection interface unit and the rewritable non-volatile memory module, wherein the memory control circuit unit is configured to store a plurality of first events into a work queue, wherein each of the first events respectively configured to execute different one of a plurality of first works, wherein the memory control circuit unit is further configured to, when a special event is determined as not occurring, execute sequentially the plurality of the first works respectively corresponding to the plurality of first events in the work queue, wherein the memory control circuit unit is further configured to, when the special event is determined as occurring, determine type of each of the plurality of the first events in the work queue, and, according to the type of one of the first events, adjust work to be executed by the one of the first events from a first work originally corresponding to the one of the first events to a second work, wherein the first work to be adjusted is different from the adjusted second work, and the second work is determined according to the type of the one of the first events, wherein the memory control circuit unit is further configured to wait to execute the second work after the adjustment of the work to be executed by the one of the first events is completed. - View Dependent Claims (22, 23, 24, 25, 26, 27, 28, 29, 30)
-
Specification