Data operating method, device, and system

US11010056B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-11010056-B2
Application numberUS-201916415940-A
CountryUS
Kind codeB2
Filing dateMay 17, 2019
Priority dateMay 21, 2014
Publication dateMay 18, 2021
Grant dateMay 18, 2021

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

A data operating method, device, and system are provided and relate to the computer field, so as to resolve a prior-art problem of low efficiency of performing a data operation on a block device by a CPU. The method includes: receiving an operation instruction sent by a CPU; when the operation instruction is a read instruction, reading a first data block in the block device and returning to-be-read data in the first data block to the CPU; or when the operation instruction is a write instruction, writing, into a cache, to-be-written data indicated by the write instruction, and writing, into the block device, a second data block that includes the to-be-written data. The method is used to operate data in a block device.

First claim

Opening claim text (preview).

What is claimed is: 1. A data operating method performed by a storage control device, the method comprising: receiving a read instruction instructing the storage control device to perform a data read operation on a block device; reading a data block from the block device, the data block comprising to-be-read data and additional data other than the to-be-read data; writing the data block into a cache of the storage control device; and returning the to-be-read data to a processor; receiving an additional read instruction instructing the storage device to perform an additional data read operation; determining that an operation object of the additional read instruction is a character device according to a physical address from which the additional read instruction instructs the additional data read operation to be performed; and sending the additional read instruction to the character device. 2. The method according to claim 1 , wherein: reading the data block from the block device comprises obtaining, from the read instruction, read address information of the to-be-read data in the block device, and reading the data block corresponding to the read address information from the block device; and returning the to-be-read data in the data block to the processor comprises extracting the to-be-read data from the data block in the cache, and returning the to-be-read data to the processor. 3. The method according to claim 1 , wherein the to-be-read data does not meet a block granularity condition for performing data interaction with the block device. 4. The method according to claim 1 , wherein a total size of the to-be-read data is less than 512 bytes, and wherein a block granularity of the block device is greater than or equal to 512 bytes. 5. The method according to claim 1 , wherein a total size of the to-be-read data is less than is less than a total size of the data block, the total size of the data block being equal to a block granularity of the block device. 6. The method according to claim 1 , wherein reading the data block from the block device comprises: determining that an operation object of the read instruction is the block device according to a physical address from which the read instruction instructs the data read operation to be performed; and reading the data block from the block device. 7. A storage control device, comprising: a cache configured to cache data; a memory configured to store instructions; and a first processor coupled to the memory and configured to execute the instructions to receive a read instruction instructing the storage control device to perform a data read operation on a block device, read a data block from the block device, the data block comprising to-be-read data and additional data other than the to-be-read data, write the data block into the cache of the storage control device, and return the to-be-read data to a second processor; receive an additional read instruction instructing the storage device to perform an additional data read operation; determine that an operation object of the additional read instruction is a character device according to a physical address from which the additional read instruction instructs the additional data read operation to be performed; and send the additional read instruction to the character device. 8. The device according to claim 7 , wherein the first processor is further configured to execute the instructions to: obtain read address information of the to-be-read data in the block device from the read instruction; and read the data block corresponding to the read address information from the block device; and extract the to-be-read data from the data block in the cache. 9. The device according to claim 7 , wherein the to-be-read data does not meet a block granularity condition for performing data interaction with the block device. 10. The device according to claim 7 , wherein a total size of the to-be-read data is less than 512 bytes, and wherein a block granularity of the block device is greater than or equal to 512 bytes. 11. The device according to claim 7 , wherein a total size of the to-be-read data is less than is less than a total size of the data block, the total size of the data block being equal to a block granularity of the block device. 12. The device according to claim 7 , wherein the first processor is further configured to execute the instructions to: determine that an operation object of the read instruction is the block device according to a physical address from which the read instruction instructs the data read operation to be performed; and read the data block from the block device. 13. A system, comprising: a processor configured to send a read instruction; and a storage control device configured to receive the read instruction sent by the processor, the read instruction instructing the storage control device to perform a data read operation on a block device, read a data block from the block device, the data block comprising to-be-read data and additional data other than the to-be-read data, write the data block into a cache of the storage control device, return the to-be-read data to the processor; receive an additional read instruction instructing the storage device to perform an additional data read operation; determine that an operation object of the additional read instruction is a character device according to a physical address from which the additional read instruction instructs the additional data read operation to be performed; and send the additional read instruction to the character device. 14. The system according to claim 13 , wherein the storage control device is further configured to: obtain read address information of the to-be-read data in the block device from the read instruction; read the data block corresponding to the read address information from the block device; and extract the to-be-read data from the data block in the cache. 15. The system according to claim 13 , wherein the to-be-read data does not meet a block granularity condition for performing data interaction with the block device. 16. The system according to claim 13 , wherein a total size of the to-be-read data is less than a total size of the data block, the total size of the data block being equal to a block granularity of the block device. 17. The system according to claim 13 , wherein the storage control device is further configured to: determine that an operation object of the read instruction is the block device according to a physical address from which the read instruction instructs the data read operation to be performed; and read the data block from the block device.

Assignees

Inventors

Classifications

  • using replacement algorithms · CPC title

  • G06F3/061Primary

    Improving I/O performance · CPC title

  • In storage controller · CPC title

  • Command handling arrangements, e.g. command buffers, queues, command scheduling · CPC title

  • Single storage device · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US11010056B2 cover?
A data operating method, device, and system are provided and relate to the computer field, so as to resolve a prior-art problem of low efficiency of performing a data operation on a block device by a CPU. The method includes: receiving an operation instruction sent by a CPU; when the operation instruction is a read instruction, reading a first data block in the block device and returning to-be-…
Who is the assignee on this patent?
Huawei Tech Co Ltd
What technology area does this patent fall under?
Primary CPC classification G06F3/061. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue May 18 2021 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 1 related publication on this page (citations in our corpus or others sharing the same primary CPC).