summaryrefslogtreecommitdiff
path: root/sdcard/Android.mk
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2012-05-26 14:32:54 -0700
committerJeff Brown <jeffbrown@google.com>2012-06-04 13:15:04 -0700
commit6249b9009f44f2127670eda4d5aa6d5fd3e26e02 (patch)
tree8ed724cab3927d33bb213e156d01750b60100011 /sdcard/Android.mk
parentfc1e1a0ab48a88dc7e9a93f65da5e6458de622af (diff)
Make sdcard daemon multi-threaded.
The essential idea here is that a handler thread only needs to hold a lock on the global node table while it is manipulating nodes. The actual I/O operation is then performed without holding any locks. By default, we use 2 threads but this can be configured on the command-line. Work is sheduled somewhat arbitrarily by the handler threads. Whichever thread happens to read() the next request first wins the right process it. This policy is very simple but potentially wastes threads when there isn't much work to be done. We can always improve this later if needed. Change-Id: Id27a27c2c9b40d4f8e35a6bef9dd84f0dfacf337
Diffstat (limited to 'sdcard/Android.mk')
-rw-r--r--sdcard/Android.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/sdcard/Android.mk b/sdcard/Android.mk
index c430ac8ee..fb04d6d35 100644
--- a/sdcard/Android.mk
+++ b/sdcard/Android.mk
@@ -4,6 +4,7 @@ include $(CLEAR_VARS)
LOCAL_SRC_FILES:= sdcard.c
LOCAL_MODULE:= sdcard
+LOCAL_CFLAGS := -Wall -Wno-unused-parameter
LOCAL_SHARED_LIBRARIES := libc