cam: remove xpt_polled_action

Since periph_runccb now handles all the polling stuff, and
xpt_polled_action is now unused and can be removed.

Sponsored by:		Netflix
Reviewed by:		mav@
Differential Revision:	https://reviews.freebsd.org/D30394
This commit is contained in:
Warner Losh 2021-05-25 09:16:49 -06:00
parent 6c48134275
commit 1f348be6f2
2 changed files with 0 additions and 23 deletions

View File

@ -3273,28 +3273,6 @@ xpt_pollwait(union ccb *start_ccb, uint32_t timeout)
}
}
void
xpt_polled_action(union ccb *start_ccb)
{
uint32_t timeout;
struct cam_ed *dev;
timeout = start_ccb->ccb_h.timeout * 10;
dev = start_ccb->ccb_h.path->device;
mtx_unlock(&dev->device_mtx);
timeout = xpt_poll_setup(start_ccb);
if (timeout > 0) {
xpt_action(start_ccb);
xpt_pollwait(start_ccb, timeout);
} else {
start_ccb->ccb_h.status = CAM_RESRC_UNAVAIL;
}
mtx_lock(&dev->device_mtx);
}
/*
* Schedule a peripheral driver to receive a ccb when its
* target device has space for more transactions.

View File

@ -40,7 +40,6 @@
/* Functions accessed by the peripheral drivers */
#ifdef _KERNEL
void xpt_polled_action(union ccb *ccb);
void xpt_release_ccb(union ccb *released_ccb);
void xpt_schedule(struct cam_periph *perph, u_int32_t new_priority);
int32_t xpt_add_periph(struct cam_periph *periph);