Patent ID: 7788415

Claim:
A method of handling internal operations of a storage device, the method comprising: defining an integral sequence of commands capable of being in one of an active state and an inactive state; associating with the integral sequence of commands a first set of internal memory management operations each of which is an extra-sequence operation, and a second set of internal memory management operations each of which is an intra-sequence operation, wherein the first set of internal, memory management operations is prohibited from being executed while the integral sequence of commands is in the active state and the second set of internal memory management operations is permitted to be executed while the integral sequence of commands is in the active state; receiving a command from a host device when the storage device is coupled to the host device; in response to the received command, determining when the integral sequence of commands is in the active state or is transitioning from the inactive state to the active state; and when the integral sequence of commands is in the active state or is transitioning from the inactive state to the active state, refraining from executing any operation of the first set of internal memory management operations.