Skip to content

Commit 68a385e

Browse files
Anil RuiaMsftBrettShirley
authored andcommitted
Bring back FSeekPenalty
[Substrate:be388546ffa56172b82b92f4c44a89b5b39659eb]
1 parent 4981fc2 commit 68a385e

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

dev/ese/src/os/osdisk.cxx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2953,13 +2953,6 @@ void COSDisk::LoadCachePerf_( HANDLE hDisk )
29532953
m_osdi.m_ossad.BusType, m_osdi.m_ossad.BusMajorVersion, m_osdi.m_ossad.BusMinorVersion ) );
29542954
}
29552955

2956-
m_osdi.m_errorOsdspd = ErrorOSDiskIOsStorageQueryProp( hDisk, StorageDeviceSeekPenaltyProperty, &m_osdi.m_osdspd, sizeof(m_osdi.m_osdspd) );
2957-
if ( m_osdi.m_errorOsdspd == ERROR_SUCCESS )
2958-
{
2959-
OSTrace( JET_tracetagFile, OSFormat( "\t m_osdi.m_osdspd = { Ver.Size=%d.%d, IncursSeekPenalty=%d };\n",
2960-
m_osdi.m_osdspd.Version, m_osdi.m_osdspd.Size, m_osdi.m_osdspd.IncursSeekPenalty ) );
2961-
}
2962-
29632956
m_osdi.m_errorOsdtd = ErrorOSDiskIOsStorageQueryProp( hDisk, StorageDeviceTrimProperty, &m_osdi.m_osdtd, sizeof(m_osdi.m_osdtd) );
29642957
if ( m_osdi.m_errorOsdtd == ERROR_SUCCESS )
29652958
{
@@ -3057,6 +3050,13 @@ ERR COSDisk::ErrInitDisk( __in_z const WCHAR * const wszDiskPathId, _In_ const D
30573050
0,
30583051
NULL );
30593052

3053+
m_osdi.m_errorOsdspd = ErrorOSDiskIOsStorageQueryProp( m_hDisk, StorageDeviceSeekPenaltyProperty, &m_osdi.m_osdspd, sizeof(m_osdi.m_osdspd) );
3054+
if ( m_osdi.m_errorOsdspd == ERROR_SUCCESS )
3055+
{
3056+
OSTrace( JET_tracetagFile, OSFormat( "\t m_osdi.m_osdspd = { Ver.Size=%d.%d, IncursSeekPenalty=%d };\n",
3057+
m_osdi.m_osdspd.Version, m_osdi.m_osdspd.Size, m_osdi.m_osdspd.IncursSeekPenalty ) );
3058+
}
3059+
30603060
// Best effort (at least some of this will not work / load if not admin or system)
30613061
// Disabling because of contention seen in repl because of repeated calls
30623062
// LoadDiskInfo_( wszDiskPath, dwDiskNumber );

0 commit comments

Comments
 (0)