• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

system/corennnnn


Commit MetaInfo

修訂79b7a0f92bdb22261cbe3684ddd1ae677b49d924 (tree)
時間2016-07-27 03:49:13
作者Samuel Ortiz <sameo@linu...>
CommiterJaap Jan Meijer

Log Message

devices: Increase the uevent socket buffer size

Depending on the timing, hald may start while ueventd is not done yet
with its initial coldboot. As hald also independently starts its own
coldboot, ueventd netlink socket buffer could get filled quickly and
thus ueventd could lose some uevents.
This is fixed by increasing the ueventd netlink socket buffer size.

Change-Id: Ie92f77c14099421740b3984f1cc23f813287b78f
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Reviewed-on: https://android.intel.com/219843
Reviewed-by: Escande, Thierry <thierry.escande@intel.com>
Reviewed-by: cactus <cactus@intel.com>
Reviewed-by: Ortiz, Samuel <samuel.ortiz@intel.com>
Tested-by: Ortiz, Samuel <samuel.ortiz@intel.com>
Tested-by: cactus <cactus@intel.com>
Reviewed-by: Porlan, Patrick <patrick.porlan@intel.com>
Reviewed-by: Bianti, Sebastien <sebastien.bianti@intel.com>
Reviewed-by: Mahalingam, Ganesh <ganesh.mahalingam@intel.com>
Tested-by: Mahalingam, Ganesh <ganesh.mahalingam@intel.com>

Change Summary

差異

--- a/init/devices.cpp
+++ b/init/devices.cpp
@@ -1397,8 +1397,8 @@ void device_init() {
13971397 selinux_status_open(true);
13981398 }
13991399
1400- /* is 256K enough? udev uses 16MB! */
1401- device_fd = uevent_open_socket(256*1024, true);
1400+ /* is 8MB enough? udev uses 16MB! */
1401+ device_fd = uevent_open_socket(8 * 1024 * 1024, true);
14021402 if (device_fd == -1) {
14031403 return;
14041404 }