摘要 |
A computer-readable storage medium storing a garbage collection program allows a computer to execute: copying valid data from a first block in a first storage device to a second storage device; instructing an exclusive mechanism to perform exclusive control of accessing to the valid data in the first block; switching an access path to the valid data in the first block, to the valid data in the second storage device; instructing the exclusive mechanism to release the exclusive control; copying the valid data in the second storage device to a second block in the first storage device to collect; instructing the exclusive mechanism to perform exclusive control of accessing to the valid data in the second storage device; switching an access path to the valid data in the second storage device, to the valid data in the second block; and instructing the exclusive mechanism to release the exclusive control.
|