IP Library Granted Patent US 10,037,281
Granted Patent B2
US 10,037,281 · App. 14/937,840 · Granted Jul 31, 2018

Method for disk defrag handling in solid state drive caching environment

Inventors: Pradeep Bisht (Mountain View, CA); Jiurong Cheng (Milpitas, CA)
Assignee: SAMSUNG ELECTRONICS CO., LTD.
G06F12/0866G06F12/0238G06F12/0888G06F12/0891G06F2206/1004G06F2212/1041G06F2212/1044G06F2212/313
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,037,281
App. No.
14/937,840
Granted
Jul 31, 2018
Kind
B2
Abstract

An invention is provided for handling target disk access requests during disk defragmentation in a solid state drive caching environment. The invention includes detecting a request to access a target storage device. In response, data associated with the request is written to the target storage device without writing the data to the caching device, with the proviso that the request is a write request. In addition, the invention includes reading data associated with the request and marking the data associated with the request stored in the caching device for discard, with the proviso that the request is a read request and the data associated with the request is stored on the caching device. Data marked for discard is discarded from the caching device when time permits, for example, upon completion of disk defragmentation.

Claims (28)

1. A method for handling target disk access requests during disk defragmentation of a target storage device in a solid-state drive caching environment including the target storage device and a caching device, comprising:

detecting a request to access the target storage device, the target storage device comprising a hard disk drive;

writing data associated with the request to the target storage device with the disk defragmentation of the target storage device continuing and without writing the data to the caching device if the request is a write request, the caching device comprising a solid-state drive;

marking for discard data stored on the caching device associated with the write request; and

discarding data marked for discard from the caching device.

2. The method of claim 1 , further comprising discarding the data marked for discard upon completion of disk defragmentation.

3. The method of claim 1 , further comprising reading data associated with the request without caching the data on the caching device, if the request is a read request, the data not being stored in the caching device.

4. The method of claim 1 , further comprising detecting a system call to begin defragmentation of the target storage device before detecting the request to access the target storage device.

5. The method of claim 1 , further comprising performing normal caching operations when defragmentation is complete.

6. The method of claim 1 , wherein the marking for discard of data stored on the caching device comprises marking in a table to mark the data for discard.

7. The method of claim 1 , further comprising, if the request is the write request, marking for discard data stored on the caching device associated with the write request.

8. The method of claim 1 , wherein the disk defragmentation mode is not exited while writing data associated with the request to the target storage device with the disk defragmentation of the target storage device continuing and without writing the data to the caching device if the request is a write request.

9. A method for handling disk access requests during disk defragmentation of a target storage device in a solid-state drive caching environment including the target storage device and a caching device, comprising:

detecting a request to access the target storage device, the target storage device comprising a hard disk drive; and

reading data associated with the request from the target storage device with the disk defragmentation of the target storage device continuing and without writing that data to the caching device if the request is a read request, the data not being stored in the caching device and the caching device comprising a solid-state drive.

10. The method of claim 9 , further comprising:

reading data associated with the read request and marking the data associated with the request stored in the caching device for discard, the data associated with the read request being stored on the caching device.

11. The method of claim 9 , further comprising, if the request is a write request, marking for discard data stored on the caching device associated with the write request.

12. The method of claim 11 , wherein the marking for discard of data stored on the caching device comprises marking in a table to mark the data for discard.

13. The method of claim 9 , further comprising discarding the data marked for discard upon completion of disk defragmentation.

14. The method of claim 9 , further comprising detecting a system call to begin defragmentation of the target storage device before detecting a request to access the target storage device.

15. The method of claim 9 , further comprising performing normal caching operations when defragmentation is complete.

16. The method of claim 9 , wherein the disk defragmentation mode is not exited while reading data associated with the request from the target storage device with the disk defragmentation of the target storage device continuing and without writing that data to the caching device if the request is a read request.

17. A method for handling disk access requests during disk defragmentation of a target storage device in a solid-state drive caching environment including the target storage device and a caching device, comprising:

detecting a request to access the target storage device, the target storage device comprising a hard disk drive; and

reading data associated with the request to access with the disk defragmentation of the target storage device continuing and marking the data associated with the request stored in the caching device for discard if the request is a read request, the data associated with the request being stored in the caching device and the caching device comprising a solid-state drive.

18. The method of claim 17 , further comprising, if the request to access is a write request, marking for discard data stored on the caching device associated with the write request.

19. The method of claim 17 , wherein the disk defragmentation mode is not exited while reading data associated with the request to access with the disk defragmentation of the target storage device continuing and marking the data associated with the request stored in the caching device for discard if the request is a read request.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 21, 2016
From: BISHT, PRADEEP; CHENG, JIURONG
To: SAMSUNG ELECTRONICS CO., LTD.
Reel/Frame 039822/0207 →
Continuity (2)
Continuation 13909027 · Jun 3, 2013
Related Publication 20160062895A1 · Mar 3, 2016