Update ioprio defines
authorWilliam Douglas <william.douglas@intel.com>
Thu, 4 Aug 2011 17:06:17 +0000 (10:06 -0700)
committerWilliam Douglas <william.douglas@intel.com>
Thu, 4 Aug 2011 17:06:17 +0000 (10:06 -0700)
We don't use RT priority so remove that.  Also 7 seemed like a
magic number so try and explain it and reference the kernel
docs where everything came from.
Signed-off-by: William Douglas <william.douglas@intel.com>
src/corewatcher.c

index 4952547..91e1ac8 100644 (file)
 #include <dbus/dbus-glib-lowlevel.h>
 
 
-
+/* see linux kernel doc Documentation/block/ioprio.txt */
 #define IOPRIO_WHO_PROCESS 1
-#define IOPRIO_CLASS_RT 1
 #define IOPRIO_CLASS_IDLE 3
 #define IOPRIO_CLASS_SHIFT 13
-#define IOPRIO_IDLE_LOWEST (7 |  (IOPRIO_CLASS_IDLE << IOPRIO_CLASS_SHIFT))
-#define IOPRIO_RT_LOWEST (7 |  (IOPRIO_CLASS_RT << IOPRIO_CLASS_SHIFT))
+#define IOPRIO_CLASS_DATA 7
+#define IOPRIO_IDLE_LOWEST (IOPRIO_CLASS_DATA |  (IOPRIO_CLASS_IDLE << IOPRIO_CLASS_SHIFT))
 
 #include "corewatcher.h"