software raid priority (systemtap)
I'd like to know on which priority software raid works (level 1 if it matters). So I wrote simple systemtap script to do the job, but I'm not sure if I have done it correctly.
[root@asus-ux21e ~]# cat raid.stp
probe module("raid1").function("*") {
printf( "name: %s | prio: %d | nice: %d\n", task_execname(task_current()), task_prio(task_current()), task_nice(task_current()));
}
Could anyone review it, and tell me on which priority software raid works?