A scheduling method and apparatus for use by a processor that controls
storage devices of a data storage system is presented. The method
allocates processing time between I/O operations and background
operations for predetermined time slots based on an indicator of
processor workload.