| CPC G06F 21/566 (2013.01) [G06F 3/0623 (2013.01); G06F 3/0659 (2013.01); G06F 3/0679 (2013.01); G06F 21/79 (2013.01); G06F 2221/034 (2013.01)] | 24 Claims |

|
1. A method for improving security of a Universal Flash Storage (UFS) device during a purge operation that is intended to delete data stored in one or more physical blocks of flash memory of the UFS device, the method comprising:
in the UFS device, if a purge operation in the UFS device is interrupted due to issuance of at least one urgent command, notifying a host processor with a message that the purge operation has been interrupted;
in the host processor, storing said message in one of a plurality of registers and storing said at least one urgent command in a command queue (CQ) that is part of the host processor;
when one or more new commands other than said at least one urgent command arrive at the CQ after the purge operation in the UFS device is interrupted and before the purge operation is resumed, the host processor storing said one or more new commands in a wait queue (WaitQ) that is part of the host processor;
the host processor performing said at least one urgent command;
in the host processor, after said at least one urgent command has been performed, causing performance of the purge operation to be resumed in the UFS device;
after the resumed purge operation has been completed, the host processor moving said one or more new commands from the WaitQ to the CQ; and
the host processor performing the one or more new commands.
|