]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
cam: Permit non-pollable sims.
authorJohn Baldwin <jhb@FreeBSD.org>
Thu, 11 Feb 2021 21:49:43 +0000 (13:49 -0800)
committerJohn Baldwin <jhb@FreeBSD.org>
Mon, 22 Mar 2021 20:36:09 +0000 (13:36 -0700)
commit444aff36738a98235306aa002d3dfe74cc475765
treed33c9282e2e54c2bbdd1627bbcf8ebf4cc1e32d8
parentb3598ed444ee1e1ab4f494cdc94b09bc09612445
cam: Permit non-pollable sims.

Some CAM sim drivers do not support polling (notably iscsi(4)).
Rather than using a no-op poll routine that always times out requests,
permit a SIM to set a NULL poll callback.  cam_periph_runccb() will
fail polled requests non-pollable sims immediately as if they had
timed out.

Sponsored by: Chelsio

(cherry picked from commit 447b3557a9cc5f00a301be8404339f21a9a0faa8)
(cherry picked from commit e6405c8c37335a42a187a9d2470025b57347b1b5)
sys/cam/cam_periph.c
sys/cam/cam_sim.h
sys/cam/cam_xpt.c