Article ID: 2627261 - Last Review: December 13, 2011 - Revision: 1.0

FIX: A deadlock may occur between two threads that call the MountPartition function and the CeResyncFilesys function in Windows Embedded CE 6.0 R3

System TipThis article applies to a different operating system than the one you are using. Article content that may not be relevant to you is disabled.

On This Page

Expand all | Collapse all

SYMPTOMS

Consider the following scenario:
  • You run a Windows Embedded CE 6.0 R3-based image that contains the Storage Manager components on a target device.
  • A thread calls the MountPartition function. For example, this happens when you mount an external storage device manually to the Windows Embedded CE 6.0 R3-based device and an application calls the function to mount the storage device.
  • Another thread calls the CeResyncFilesys function. For example, this happens when you repeatedly attach and detach the external storage device to the Windows Embedded CE 6.0 R3-based device.

In this scenario, a deadlock may occur between the two threads. Additionally, the applications that produce these threads may stop responding.

RESOLUTION

Software update information

A supported software update is now available from Microsoft as "Windows Embedded CE 6.0 Monthly Update November 2011." In the "File information" section, the package file name contains the product version, the date, the Knowledge Base article number, and the processor type. The package file name format is as follows: 
Product version-yymmdd-kbnnnnnn-processor type
For example, Wincepb60-110128-kb2492159-armv4i.msi is the ARMV4i Windows Embedded CE 6.0 Platform Builder fix that is documented in Microsoft Knowledge Base article 2492159 and that is contained in the January 2011 monthly update.

To resolve this problem immediately, download this Windows Embedded CE 6.0 Monthly Update from the following Microsoft website.

Microsoft Download Center
Windows Embedded CE 6.0 (http://www.microsoft.com/download/en/search.aspx?q=Windows%20Embedded%20CE%206.0%20Monthly%20Update)

Additional update information

This update fixes another issue in the File System Disk Manager (FSDMGR). The issue occurs after you apply update 2557486 in which you may encounter store lock errors when FSDMGR handles "Mount In progress" stores. For more information about update 2557486, click the following article number to view the article in the Microsoft Knowledge Base:
2557486  (http://support.microsoft.com/kb/2557486/ ) FIX: The file system API cannot be returned when the FSDMGR PNP thread maintains a lock on a Windows Embedded CE 6.0 R3-based device
Note The fix is included in Windows Embedded CE 6.0 Monthly Update September 2011.

Prerequisites

This update is supported only if all previously issued updates for this product have also been installed.

Restart requirement

After you apply this update, you must perform a clean build of the whole platform. To do this, use one of the following methods:
  • On the Build menu, click Clean Solution, and then click Build Solution.
  • On the Build menu, click Rebuild Solution.
You do not have to restart the computer after you apply this software update.

Update replacement information

This update does not replace any other updates.

File information

The English version of this software update package has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
Installer files
Collapse this tableExpand this table
File nameFile sizeDateTime
Wincepb60-111117-kb2627261-mipsiv_fp.msi1,585,15217-Nov-201122:48
Wincepb60-111117-kb2627261-sh4.msi1,544,19217-Nov-201122:48
Wincepb60-111117-kb2627261-x86.msi1,445,88817-Nov-201122:48
Wincepb60-111117-kb2627261-armv4i.msi1,589,24817-Nov-201122:48
Wincepb60-111117-kb2627261-mipsii.msi1,576,96017-Nov-201122:48
Wincepb60-111117-kb2627261-mipsii_fp.msi1,576,96017-Nov-201122:48
Wincepb60-111117-kb2627261-mipsiv.msi1,585,15217-Nov-201122:48
Files that are included in this update package
Collapse this tableExpand this table
File nameFile sizeDateTimePath
Windows embedded ce 6.0_update_kb2627261.htm7,93517-Nov-201120:59111117_kb2627261
Stgapi.cpp31,80508-Nov-201121:15Private\Winceos\Coreos\Storage\Fsdmgr
Storemain.cpp49,55308-Nov-201121:15Private\Winceos\Coreos\Storage\Fsdmgr
Fsdmgr_lib.lib1,528,85608-Nov-201121:13Public\Common\Oak\Lib\Armv4i\Debug
Fsdmgr_lib.lib1,239,91008-Nov-201121:13Public\Common\Oak\Lib\Armv4i\Retail
Fsdmgr_lib.lib1,503,20608-Nov-201121:14Public\Common\Oak\Lib\Mipsii\Debug
Fsdmgr_lib.lib1,247,74408-Nov-201121:14Public\Common\Oak\Lib\Mipsii\Retail
Fsdmgr_lib.lib1,503,50408-Nov-201121:14Public\Common\Oak\Lib\Mipsii_fp\Debug
Fsdmgr_lib.lib1,248,17208-Nov-201121:14Public\Common\Oak\Lib\Mipsii_fp\Retail
Fsdmgr_lib.lib1,526,47008-Nov-201121:15Public\Common\Oak\Lib\Mipsiv\Debug
Fsdmgr_lib.lib1,265,07408-Nov-201121:14Public\Common\Oak\Lib\Mipsiv\Retail
Fsdmgr_lib.lib1,526,76808-Nov-201121:15Public\Common\Oak\Lib\Mipsiv_fp\Debug
Fsdmgr_lib.lib1,265,49408-Nov-201121:15Public\Common\Oak\Lib\Mipsiv_fp\Retail
Fsdmgr_lib.lib1,348,95208-Nov-201121:15Public\Common\Oak\Lib\Sh4\Debug
Fsdmgr_lib.lib1,138,59608-Nov-201121:15Public\Common\Oak\Lib\Sh4\Retail
Fsdmgr_lib.lib1,273,61808-Nov-201121:13Public\Common\Oak\Lib\X86\Debug
Fsdmgr_lib.lib1,070,38608-Nov-201121:13Public\Common\Oak\Lib\X86\Retail

REFERENCES

For more information about the MountPartition function, visit the following Microsoft Developer Network (MSDN) website:
MountPartition (Windows Embedded Compact 7) (http://msdn.microsoft.com/en-us/library/ee489552.aspx)
For more information about the CeResyncFilesys function, visit the following MSDN website:
CeResyncFilesys (Windows Embedded Compact 7) (http://msdn.microsoft.com/en-us/library/ee489543.aspx)
For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684  (http://support.microsoft.com/kb/824684/ ) Description of the standard terminology that is used to describe Microsoft software updates
Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use (http://go.microsoft.com/fwlink/?LinkId=151500) for other considerations.

APPLIES TO
  • Windows Embedded CE 6.0 R3
Keywords: 
kbfix kbqfe kbpubtypekc kbexpertiseinter KB2627261