×

Methods for context switching within a disk controller

  • US 6,401,149 B1
  • Filed: 04/12/2000
  • Issued: 06/04/2002
  • Est. Priority Date: 05/05/1999
  • Status: Expired due to Term
First Claim
Patent Images

1. A method of context switching within a disk controller, comprising:

  • storing a first context in a first memory coupled to a first disk controller processor;

    storing a second context in a second memory, the second memory configurable as both a random access memory and a first-in-first-out (FIFO) memory;

    using the first disk controller processor, managing a first transfer operation related to the first context, wherein the first transfer operation transfers data from a disk drive to a communication link;

    determining that the disk drive has fallen behind the communication links ability to receive data;

    suspending the first transfer operation;

    swapping the first context from the first memory with the second context stored in the second memory, wherein the first context is stored at an address location in the second memory identified by a write pointer, wherein the address identified by the write pointer is changed based at least in part on the size of the first context;

    using the first disk controller processor, managing a second transfer operation corresponding to the second context;

    restoring the first context to the first memory from the second memory after completing at least a portion of the second transfer operation;

    completing the first transfer operation; and

    transferring disk data between the second memory and a buffer memory in a first-in-first-out manner.

View all claims
  • 4 Assignments
Timeline View
Assignment View
    ×
    ×