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:
+2
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user