]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r265150:
authormav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 8 May 2014 08:31:53 +0000 (08:31 +0000)
committermav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 8 May 2014 08:31:53 +0000 (08:31 +0000)
commit212cfb27a1cf3c4415738e027a2a06ce1061c001
treeb710b32f1393fc4ad4810baac88d6ee4d2858215
parentb221a629b881b93c9a034000aeaa6de7f2ecbd91
MFC r265150:
Do not reread SCSI disk VPD pages on every device open.

Instead of rereading VPD pages on every device open, do it only on initial
device probe, and in cases when device reported via UNIT ATTENTIONs that
something has changed.  Capacity is still rereaded on every open because
it is more critical for operation and more probable to change in run time.

On my tests with Intel 530 SSDs on mps(4) HBA this change reduces time
GEOM needs to retaste the device (that includes few open/close cycles)
from ~150ms to ~30ms.

git-svn-id: svn://svn.freebsd.org/base/stable/9@265660 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/cam/scsi/scsi_da.c