cam/xpt: improve comment on xpt_path_inq

Fix a comment about bzero maybe unnecessary. It can sometimes be
redunant, but a common usage pattern puts the ccb_pathinq structure on
the stack since it's small and for that scenario, it's required. It's
reundant for the few places the ccb is allocated, and in those cases it
does no harm.

Sponsored by:		Netflix
Reviewed by:		jhb
Differential Revision:	https://reviews.freebsd.org/D51166
This commit is contained in:
Warner Losh
2025-07-07 14:04:33 -06:00
parent 5ac5ebfa75
commit 034b3515ea
+2 -2
View File
@@ -145,8 +145,8 @@ uint32_t xpt_poll_setup(union ccb *start_ccb);
void xpt_sim_poll(struct cam_sim *sim);
/*
* Perform a path inquiry at the request priority. The bzero may be
* unnecessary.
* Perform a path inquiry at the request priority. bzero may be redundant for
* allocated CCBs, but for the on-stack CCBs it's required.
*/
static inline void
xpt_path_inq(struct ccb_pathinq *cpi, struct cam_path *path)