]> 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>
Thu, 11 Feb 2021 21:52:12 +0000 (13:52 -0800)
commit447b3557a9cc5f00a301be8404339f21a9a0faa8
tree1f290d6a8ec6f264e9d4b6a2504b062178d17979
parent6d2a10d96fb5d4ee42fd67b0b07a6d098db5d55a
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.

Reviewed by: scottl, mav (earlier version)
Reviewed by: imp
MFC after: 2 weeks
Sponsored by: Chelsio
Differential Revision: https://reviews.freebsd.org/D28453
sys/cam/cam_periph.c
sys/cam/cam_sim.h
sys/cam/cam_xpt.c