OSDN Git Service

Workaround a kernel race when loading dmcrypt table
authorKen Sumrall <ksumrall@android.com>
Sun, 30 Sep 2012 00:07:41 +0000 (17:07 -0700)
committerKen Sumrall <ksumrall@android.com>
Sun, 30 Sep 2012 00:24:46 +0000 (17:24 -0700)
commite919efea94b178ed214ed2e78ef0d008727d62ab
tree688b0c1ed61f12b04ada167242fcbd29b90cbe2c
parent6947904a76b69a1db20a3ddd30c0bcd281922fde
Workaround a kernel race when loading dmcrypt table

The kernel seems to return from umount(2) sometimes before it has
released the underlying block device.  So until the kernel is fixed,
try up to 10 times to load the crypto mapping table, waiting 500 ms
between tries.

bug: 7220345

Change-Id: Iad3bbef37cbe2e01613bb8a8c4886babdecb8328
cryptfs.c