cam_xpt.c (ea37f51942898887232b02a69273fc1ddb21d2ba) cam_xpt.c (10284c8b26f0971cde1fd734ee74012f3aa2720e)
1/*-
2 * Implementation of the Common Access Method Transport (XPT) layer.
3 *
4 * Copyright (c) 1997, 1998, 1999 Justin T. Gibbs.
5 * Copyright (c) 1997, 1998, 1999 Kenneth D. Merry.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 4991 unchanged lines hidden (view full) ---

5000 TAILQ_INIT(&queue);
5001 while (!TAILQ_EMPTY(&cam_simq)) {
5002 TAILQ_CONCAT(&queue, &cam_simq, links);
5003 mtx_unlock(&cam_simq_lock);
5004
5005 while ((sim = TAILQ_FIRST(&queue)) != NULL) {
5006 TAILQ_REMOVE(&queue, sim, links);
5007 CAM_SIM_LOCK(sim);
1/*-
2 * Implementation of the Common Access Method Transport (XPT) layer.
3 *
4 * Copyright (c) 1997, 1998, 1999 Justin T. Gibbs.
5 * Copyright (c) 1997, 1998, 1999 Kenneth D. Merry.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 4991 unchanged lines hidden (view full) ---

5000 TAILQ_INIT(&queue);
5001 while (!TAILQ_EMPTY(&cam_simq)) {
5002 TAILQ_CONCAT(&queue, &cam_simq, links);
5003 mtx_unlock(&cam_simq_lock);
5004
5005 while ((sim = TAILQ_FIRST(&queue)) != NULL) {
5006 TAILQ_REMOVE(&queue, sim, links);
5007 CAM_SIM_LOCK(sim);
5008 sim->flags &= ~CAM_SIM_ON_DONEQ;
5009 camisr_runqueue(&sim->sim_doneq);
5008 camisr_runqueue(&sim->sim_doneq);
5009 sim->flags &= ~CAM_SIM_ON_DONEQ;
5010 CAM_SIM_UNLOCK(sim);
5011 }
5012 mtx_lock(&cam_simq_lock);
5013 }
5014 mtx_unlock(&cam_simq_lock);
5015}
5016
5017static void

--- 97 unchanged lines hidden ---
5010 CAM_SIM_UNLOCK(sim);
5011 }
5012 mtx_lock(&cam_simq_lock);
5013 }
5014 mtx_unlock(&cam_simq_lock);
5015}
5016
5017static void

--- 97 unchanged lines hidden ---