system/corennnnn
修訂 | 79b7a0f92bdb22261cbe3684ddd1ae677b49d924 (tree) |
---|---|
時間 | 2016-07-27 03:49:13 |
作者 | Samuel Ortiz <sameo@linu...> |
Commiter | 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>
@@ -1397,8 +1397,8 @@ void device_init() { | ||
1397 | 1397 | selinux_status_open(true); |
1398 | 1398 | } |
1399 | 1399 | |
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); | |
1402 | 1402 | if (device_fd == -1) { |
1403 | 1403 | return; |
1404 | 1404 | } |