STORAGE CONTROL METHOD, STORAGE CONTROL UNIT AND STORAGE APPARATUS
A control method includes determining whether a size of write data specified by a command supplied from a host is smaller than a size of a physical sector of a recording medium, lowering priority of the write data when the size of the write data is smaller than the size of the physical sector, continuously reading, when a plurality of commands for write data having lowered priority are supplied, data in physical sectors specified in the plurality of commands, and executing a modify write process on the basis of a result of continuously reading the data.
1 . A storage control method comprising:
determining whether a size of write data specified by a command supplied from a host is smaller than a size of a physical sector of a recording medium;
lowering priority of the write data when the size of the write data is smaller than the size of the physical sector;
continuously reading, when a plurality of commands for write data having lowered priority are supplied, data in physical sectors specified in the plurality of commands; and
executing a modify write process on the basis of a result of continuously reading the data.
2 . The storage control method according to claim 1 , further comprising:
dividing the write data into first data equal in length to the physical sector and second data other than the first data when the size of the write data specified by the command supplied from the host is greater than that of the physical sector of the recording medium; and
dividing the command into a first command related to the first data and a second command related to the second data,
wherein the determining includes determining whether a size of the second data is smaller than that of the physical sector.
3 . The storage control method according to claim 1 , further comprising moving the write data having the priority lowered by the lowering to a continuous buffer area.
4 . The storage control method according to claim 1 , wherein the continuously reading includes continuously reading only parts in the physical sector that are free of data, and the executing the modify write process performs a write process in a different order of execution from that of the continuously reading.
5 . The storage control method according to claim 1 , further comprising:
preferentially requesting the host to send data that does not need the continuously reading and the executing the modify write process when the command supplied from the host is a native command queuing command; and
requesting the host to continuously send data necessary for the continuous reading and the executing the modify write process.
6 . A storage control unit comprising:
a first part that determines whether a size of write data specified by a command supplied from a host is smaller than a size of a physical sector of a recording medium;
a second part that lowers priority of the write data when the size of the write data is smaller than the size of the physical sector;
a third part that continuously reads, when a plurality of commands for write data having lowered priority are supplied, data in physical sectors specified in the plurality of commands; and
a fourth part that executes a modify write process on the basis of a result of continuously reading the data.
7 . The storage control unit according to claim 6 , further comprising:
a fifth part that divides the write data into first data equal in length to the physical sector and second data other than the first data when the size of the write data specified by the command supplied from the host is greater than that of the physical sector of the recording medium; and
a sixth part that divides the command into a first command related to the first data and a second command related to the second data,
wherein the first part determines whether a size of the second data is smaller than that of the physical sector.
8 . The storage control unit according to claim 6 , further comprising a part that moves the write data having the priority lowered by the second part to a continuous buffer area.
9 . The storage control unit according to claim 6 , wherein the third part includes a part that continuously reads only parts in the physical sector that are free of data, and the fourth path performs a write process in a different order of execution from that of the third part.
10 . A storage apparatus comprising:
a storage control unit; and
a recording medium,
the storage control unit including:
a first part that determines whether a size of write data specified by a command supplied from a host is smaller than a size of a physical sector of the recording medium;
a second part that lowers priority of the write data when the size of the write data is smaller than the size of the physical sector;
a third part that continuously reads, when a plurality of commands for write data having lowered priority are supplied, data in physical sectors specified in the plurality of commands; and
a fourth part that executes a modify write process on the basis of a result of continuously reading the data.