Code Review
/
kvmfornfv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Placing kernel_debug.sh in kvmfornfv kernel module
[kvmfornfv.git]
/
kernel
/
block
/
ioprio.c
diff --git
a/kernel/block/ioprio.c
b/kernel/block/ioprio.c
index
cc7800e
..
01b8116
100644
(file)
--- a/
kernel/block/ioprio.c
+++ b/
kernel/block/ioprio.c
@@
-150,8
+150,10
@@
static int get_task_ioprio(struct task_struct *p)
if (ret)
goto out;
ret = IOPRIO_PRIO_VALUE(IOPRIO_CLASS_NONE, IOPRIO_NORM);
+ task_lock(p);
if (p->io_context)
ret = p->io_context->ioprio;
+ task_unlock(p);
out:
return ret;
}