A method for phased garbage collection is provided. In this method, a
write command is received to write data. The write command is allocated a
timeout period to complete an execution of the write command. Thereafter,
a busy signal is asserted and a portion of a garbage collection operation
is performed for a garbage collection time period. The data are written
to a block and the busy signal is released before the timeout period.