Electronic device for timeout prevention and operation method thereof
Disclosed is an electronic device including a processor configured to receive a command requesting an operation for a plurality of group zones from a host, transmit a completion response to the command to the host, and perform a background operation for the command; and a plurality of storage devices, the processor configured to control the plurality of storage devices, each of the plurality of group zones including a plurality of zones included in one or more storage devices among the plurality of storage devices, and the processor being configured to perform the background operation including generating a plurality of distribution commands for each of the plurality of storage devices from the command, and issuing one or more distribution commands among the plurality of distribution commands to one or more storage devices corresponding to the one or more distribution commands, respectively.
1 . An electronic device comprising:
a processor configured to
receive a first command requesting an operation for a plurality of group zones from a host,
transmit a first completion response to the first command to the host, and
perform a first background operation for the first command; and
a plurality of storage devices, the processor configured to control the plurality of storage devices,
each of the plurality of group zones including a plurality of zones included in one or more storage devices among the plurality of storage devices, and
the processor being configured to perform the first background operation including generating a plurality of first distribution commands for each of the plurality of storage devices from the first command, and issuing one or more first distribution commands among the plurality of first distribution commands to one or more of the plurality of storage devices corresponding to the one or more first distribution commands, respectively, in a queue,
receive a second command for a first set of group zones among the plurality of group zones being received from the host after transmitting the first completion response to the host,
generate a plurality of second distribution commands for each of the plurality of storage devices from the second command,
issue a first set of the one or more first distribution commands for the first set of group zones ahead of an order indicated by the queue of the first background operation related to the first command,
issue the plurality of second distribution commands from the second command for the first set of group zones after issuing the first set of the one or more first distribution commands for the first set of group zones ahead of the order indicated by the queue of the first background operation, and
transmit a second completion response corresponding to the second command to the host,
wherein the first set of group zones are subject to the first background operation.
2 . The electronic device of claim 1 , wherein the processor is configured to issue the one or more first distribution commands to the one or more storage devices at time periods, respectively.
3 . The electronic device of claim 1 , wherein the processor is configured to
generate list information for the plurality of group zones, and
the list information includes a buffered state and a stored state of for each of the plurality of group zones in the first command.
4 . The electronic device of claim 3 , further comprising:
one or more other storage devices configured to store the list information.
5 . The electronic device of claim 4 , wherein the processor is configured to update the list information according to a second set of group zones having processed the first background operation existing among the plurality of group zones.
6 . The electronic device of claim 5 , wherein the processor is configured to store the updated list information in the one or more other storage devices based on a number of the processed second set of group zones being greater than or equal to a threshold number.
7 . The electronic device of claim 1 , wherein the processor is configured to transmit the first completion response to the host before the first command is processed.
8 . The electronic device of claim 1 , wherein the processor is configured to resume the first background operation after transmitting the second completion response to the second command to the host.
9 . The electronic device of claim 1 , wherein the processor is configured to perform the first background operation in less time in an idle time of the processor than in a non-idle time of the processor.
10 . A method of operation performed by an electronic device, the method comprising:
receiving a first command requesting an operation for a plurality of group zones from a host;
transmitting a first completion response to the first command to the host; and
performing a background operation for the first command,
each of the plurality of group zones including a plurality of zones included in one or more storage devices among a plurality of storage devices, and
the background operation including
generating a plurality of first distribution commands for each of the plurality of storage devices from the first command;
issuing one or more first distribution commands among the plurality of first distribution commands to the one or more storage devices corresponding to the one or more first distribution commands, respectively, in a queue;
receiving a second command for a first set of group zones among the plurality of group zones being received from the host after transmitting the first completion response to the host;
generate a plurality of second distribution commands for each of the one or more of storage devices corresponding the second command;
issuing the one or more first distribution commands for the first set of group zones ahead of an order indicated by the queue of the first background operation related to the first command;
issuing the plurality of second distribution commands from the second command for the first set of group zones after issuing the one or more first distribution commands for the first set of group zones ahead of the order indicated by the queue of the first background operation; and
transmitting a second completion response corresponding to the second command to the host,
wherein the first set of group zones are subject to the first background operation.
11 . The method of claim 10 , wherein the one or more first distribution commands are issued to the one or more storage devices at time periods, respectively.
12 . The method of claim 10 , further comprising:
generating list information for the plurality of group zones;
storing the list information in one or more other storage devices; and
the list information includes a buffered state and a stored state of for each of the plurality of group zones in the first command.
13 . The method of claim 10 , wherein the transmitting of the first completion response to the host is performed before the first command is processed.
14 . The method of claim 12 , further comprising:
updating the list information in response to a second set of group zones having processed the first background operation existing among the plurality of group zones; and
storing the updated list information in the one or more other storage devices based on a number of the processed second set of group zones being greater than or equal to a threshold number.
15 . An electronic device comprising:
a processor configured to
receive a first command requesting an operation for a plurality of group zones from a host,
generate list information for the plurality of group zones,
transmit a first completion response to the first command to the host, and
perform a first background operation for the first command; and
a plurality of storage devices, the processor configured to control the plurality of storage devices,
each of the plurality of group zones including a plurality of zones included in one or more storage devices among the plurality of storage devices,
the processor configured to perform the first background operation including generating a plurality of first distribution commands for each of the plurality of storage devices from the first command, and issuing one or more first distribution commands among the plurality of first distribution commands to one or more storage devices corresponding, to a respective one of the one or more first distribution commands, in a queue
the one or more storage devices among the plurality of storage devices is configured to store the list information in a memory area of the one or more storage devices,
the processor configured to
receive a second command for a first set of group zones among the plurality of group zones being received from the host after transmitting the first completion response to the host,
generate a plurality of second distribution commands for each of the plurality of storage devices from the second command,
issue a first set of the one or more first distribution commands for the first set of group zones ahead of an order indicated by the queue the first background operation related to the first command,
issue the plurality of second distribution commands from the second command for the first set of group zones after issuing the first set of the one or more first distribution commands for the first set of group zones ahead of the order indicated by the queue of the first background operation, and
transmit a second completion response corresponding to the second command to the host,
wherein the first set of group zones are subject to the first background operation.
16 . The electronic device of claim 15 , wherein the processor is configured to
update the list information according to a second set of group zones having processed the first background operation existing among the plurality of group zones, and
store the updated list information in the memory area based on a number of the processed second set of group zones being greater than or equal to a threshold number.