Patent ID: 7657782

Claim:
A computer program product comprising a computer recordable medium tangibly embodying a computer readable program, wherein the computer readable program, when executed on a computing device, causes the computing device to: establish a physical session for a storage control unit associated with the computing device, wherein the physical session includes a plurality of storage volume groups; establish a virtual session, within the physical session, for each of the plurality of storage volume groups thereby forming a plurality of virtual sessions; receive a request to mirror one or more virtual sessions in the plurality of virtual sessions; spawn a thread for each virtual session in the plurality of virtual sessions; assign a unique session identifier to each thread, wherein the unique session identifier indicates either mirroring of the virtual session or not to mirror the virtual session; selectively perform a remote mirroring operation, between the computing device and a second computing device, with respect to one or more of the storage volume groups in the plurality of storage volume groups based on whether the one or more storage volume groups has an associated virtual session with an associated thread that has an associated unique session identifier indicating the mirroring of the virtual session while other storage volume groups in the plurality of storage volume groups are not subjected to the remote mirroring operation based on whether the other storage volume groups has an associated virtual session with an associated thread that has an associated unique session identifier indicating not to mirror the virtual session; and update a task instruction pointer (TIP) by each thread after completion of the corresponding thread's operations in the remote mirroring operation, wherein a thread that has the associated unique session identifier indicating the mirroring of the virtual session updates the TIP when the remote mirroring operation is complete and wherein the thread that has the associated unique session identifier indicating not to mirror the virtual session updates the TIP without performing any remote mirroring operation.