projects
/
platform
/
kernel
/
linux-exynos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[platform/kernel/linux-exynos.git]
/
block
/
elevator.c
diff --git
a/block/elevator.c
b/block/elevator.c
index
4bb2f0c
..
153926a
100644
(file)
--- a/
block/elevator.c
+++ b/
block/elevator.c
@@
-1055,6
+1055,10
@@
static int __elevator_change(struct request_queue *q, const char *name)
char elevator_name[ELV_NAME_MAX];
struct elevator_type *e;
+ /* Make sure queue is not in the middle of being removed */
+ if (!test_bit(QUEUE_FLAG_REGISTERED, &q->queue_flags))
+ return -ENOENT;
+
/*
* Special case for mq, turn off scheduling
*/