• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

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

system/corennnnn


コミットメタ情報

リビジョン79b7a0f92bdb22261cbe3684ddd1ae677b49d924 (tree)
日時2016-07-27 03:49:13
作者Samuel Ortiz <sameo@linu...>
コミッターJaap Jan Meijer

ログメッセージ

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>

変更サマリ

差分

--- 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 }