| CPC G06F 12/023 (2013.01) [G06F 13/1668 (2013.01)] | 15 Claims |

|
1. A data storage device, comprising:
a memory device; and
a controller coupled to the memory device, wherein the controller comprises a data path and a control path, wherein a write queue is disposed in the data path, and the controller is configured to:
retrieve a read command;
look for a write command that is overlapped with the read command;
determine whether the write command has a write protect attribute;
execute the write command having the write protect attribute, wherein executing the write command having the write protect attribute comprises passing the write command having the write protect attribute to the data path;
after executing the write command having the write protect attribute:
return an error message; and
execute the read command; and
remove the write command having the write protect attribute from the write queue and an overlap table.
|