/* Abort the session when the transition from BS to RT is initiated. */
VOID EFIAPI IScsiOnExitBootService(IN EFI_EVENT Event, IN VOID *Context)
/* Abort the session when the transition from BS to RT is initiated. */
VOID EFIAPI IScsiOnExitBootService(IN EFI_EVENT Event, IN VOID *Context)
{
  ISCSI_DRIVER_DATA  *Private;
  Private = (ISCSI_DRIVER_DATA *)Context;
  gBS->CloseEvent (Private->ExitBootServiceEvent);
  Private->ExitBootServiceEvent = NULL;
  if (Private->Session != NULL) {
    IScsiSessionAbort (Private->Session);
  }
}