Disclosed is a method, system, and program for prestaging data into cache
from a storage system in preparation for data transfer operations. A first processing
unit communicates data transfer operations to a second processing unit that controls
access to the storage system. The first processing unit determines addressable
locations in the storage system of data to prestage into cache and generates a
data structure capable of indicating contiguous and non-contiguous addressable
locations addressable locations in the storage system including the data to prestage
into the cache. The first processing unit transmits a prestage command to the second
processing unit. The prestage command causes the second processing unit to prestage
into cache the data at the addressable locations indicated in the data structure.
The first processing unit then requests data at the addressable locations indicated
in the data structure. In response, the second processing unit returns the requested
data from the cache.