GARBAGE COLLECTION PROGRAM, GARBAGE COLLECTION METHOD, AND GARBAGE COLLECTION SYSTEM
First Claim
1. A non-transitory, computer-readable storage medium storing a garbage collection program allowing a computer to execute:
- copying valid data from a first block in a first storage device that stores both valid data and invalid data to a second storage device different from the first storage device, data stored in the first storage device is deleted in a unit of block;
instructing an exclusive unit to perform exclusive control of accessing to the valid data in the first block;
switching, after the exclusive control is performed, an access path to the valid data in the first storage device to an access path to the valid data copied to the second storage device;
instructing, after the access path is switched to the access path to the valid data copied to the second storage device, the exclusive unit to release the exclusive control of accessing to the valid data in the first block when;
copying the valid data in the second storage device to a second block in the first storage device that is different from the first block to collect the valid data into the second block;
instructing the exclusive unit to perform exclusive control of accessing to the valid data in the second storage device;
switching, after the exclusive control is performed, an access path to the valid data in the second storage device to an access path to the valid data copied to the second block; and
instructing, after an access path is switched to the access path to the valid data copied to the second storage device, the exclusive unit to release the exclusive control of accessing the valid data in the second storage device.
1 Assignment
0 Petitions
Accused Products
Abstract
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.
-
Citations
20 Claims
-
1. A non-transitory, computer-readable storage medium storing a garbage collection program allowing a computer to execute:
-
copying valid data from a first block in a first storage device that stores both valid data and invalid data to a second storage device different from the first storage device, data stored in the first storage device is deleted in a unit of block; instructing an exclusive unit to perform exclusive control of accessing to the valid data in the first block; switching, after the exclusive control is performed, an access path to the valid data in the first storage device to an access path to the valid data copied to the second storage device; instructing, after the access path is switched to the access path to the valid data copied to the second storage device, the exclusive unit to release the exclusive control of accessing to the valid data in the first block when; copying the valid data in the second storage device to a second block in the first storage device that is different from the first block to collect the valid data into the second block; instructing the exclusive unit to perform exclusive control of accessing to the valid data in the second storage device; switching, after the exclusive control is performed, an access path to the valid data in the second storage device to an access path to the valid data copied to the second block; and instructing, after an access path is switched to the access path to the valid data copied to the second storage device, the exclusive unit to release the exclusive control of accessing the valid data in the second storage device. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)
-
-
13. A garbage collection system comprising:
-
a first copy section that copies valid data from a first block in a first storage device contains both valid data and invalid data to a second storage device different from the first storage device, data stored in the first storage device is deleted in a unit of block; a first exclusive instruction section that instructs an exclusive unit to perform exclusive control of accessing the valid data to be copied in the first block; a first switch section that switches an access path to the valid data in the first block to be copied to an access path to the valid data copied to the second storage device after the exclusive control is instructed by the first exclusive instruction section; a first exclusive release instruction section that instructs the exclusive unit to release the exclusive control after the first switch section switches the access path; a second copy section that copies the valid data in the second storage device to a second block in the first storage device that is different from the first block; a second exclusive instruction section that instructs the exclusive unit to perform exclusive control of accessing the valid data in the second storage device; a second switch section that switches an access path to the valid data in the second storage device to an access path to the valid data copied to the second block after the exclusive control is instructed by the second exclusive instruction section; and a second exclusive release instruction section that instructs the exclusive unit to release the exclusive control after the second switch section switches the access path. - View Dependent Claims (14, 15, 16, 17, 18)
-
-
19. A garbage collection method comprising:
-
copying valid data from a first block in a first storage device stores both valid data and invalid data to a second storage device different from the first storage device the valid data and invalid data being stored in the first block; instructing an exclusive unit 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 an access path to the valid data copied to the second storage device, after the instructed exclusive control is performed; instructing the exclusive unit to release the exclusive control after the access path is switched; copying the valid data copied in the second storage device to a second block in the first storage device that is different from the first block to collect the valid data; instructing the exclusive unit to perform exclusive control of accessing to the valid data in the second storage device to be copied; switching an access path to the valid data to be copied in the second storage device to an access path to the valid data copied to the second block when the exclusive control of accessing to the valid data in the second storage device to be copied is performed; and instructing the exclusive unit to release the exclusive control after the switching of the access path is performed. - View Dependent Claims (20)
-
Specification