blk-mq: fix the cmd_flag_name array [Linux 5.0]

blk-mq: fix the cmd_flag_name array [Linux 5.0]

This Linux kernel change "blk-mq: fix the cmd_flag_name array" is included in the Linux 5.0 release. This change is authored by Jianchao Wang <jianchao.w.wang [at] oracle.com> on Thu Jan 24 18:28:55 2019 +0800. The commit for this change in Linux stable tree is 1c26010 (patch).

blk-mq: fix the cmd_flag_name array

Swap REQ_NOWAIT and REQ_NOUNMAP and add REQ_HIPRI.

Acked-by: Jeff Moyer <[email protected]>
Signed-off-by: Jianchao Wang <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>

There are 3 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 block/blk-mq-debugfs.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/block/blk-mq-debugfs.c b/block/blk-mq-debugfs.c
index 90d6876..f812083 100644
--- a/block/blk-mq-debugfs.c
+++ b/block/blk-mq-debugfs.c
@@ -308,8 +308,9 @@ static int hctx_flags_show(void *data, struct seq_file *m)
    CMD_FLAG_NAME(PREFLUSH),
    CMD_FLAG_NAME(RAHEAD),
    CMD_FLAG_NAME(BACKGROUND),
-   CMD_FLAG_NAME(NOUNMAP),
    CMD_FLAG_NAME(NOWAIT),
+   CMD_FLAG_NAME(NOUNMAP),
+   CMD_FLAG_NAME(HIPRI),
 };
 #undef CMD_FLAG_NAME

Leave a Reply

Your email address will not be published. Required fields are marked *