]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r349243: Optimize xpt_getattr().
authorAlexander Motin <mav@FreeBSD.org>
Sun, 7 Jul 2019 18:50:23 +0000 (18:50 +0000)
committerAlexander Motin <mav@FreeBSD.org>
Sun, 7 Jul 2019 18:50:23 +0000 (18:50 +0000)
commitb242b46c2c8221fdae08e096f2e6319f6eb88668
tree154e5b167f0fdc37c2397e4c33024ae8af270b01
parent7e8be396fa64732c3535402d70abd7aac6e20baa
MFC r349243: Optimize xpt_getattr().

Do not allocate temporary buffer for attributes we are going to return
as-is, just make sure to NUL-terminate them.  Do not zero temporary 64KB
buffer for CDAI_TYPE_SCSI_DEVID, XPT tells us how much data it filled
and there are also length fields inside the returned data also.
sys/cam/cam_xpt.c