diff options
-rw-r--r-- | block/elevator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/elevator.c b/block/elevator.c index 6df2b5056b51..0abce473d606 100644 --- a/block/elevator.c +++ b/block/elevator.c | |||
@@ -1097,7 +1097,7 @@ ssize_t elv_iosched_show(struct request_queue *q, char *name) | |||
1097 | struct elevator_type *__e; | 1097 | struct elevator_type *__e; |
1098 | int len = 0; | 1098 | int len = 0; |
1099 | 1099 | ||
1100 | if (!q->elevator) | 1100 | if (!q->elevator || !blk_queue_stackable(q)) |
1101 | return sprintf(name, "none\n"); | 1101 | return sprintf(name, "none\n"); |
1102 | 1102 | ||
1103 | elv = e->elevator_type; | 1103 | elv = e->elevator_type; |