]> git.baikalelectronics.ru Git - kernel.git/commitdiff
block: remove unused BLK_QC_T_EAGAIN flag
authorJeffle Xu <jefflexu@linux.alibaba.com>
Fri, 25 Sep 2020 06:00:31 +0000 (14:00 +0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 25 Sep 2020 13:54:50 +0000 (07:54 -0600)
commit 8881f9ecd517 ("block: remove REQ_NOWAIT_INLINE") removed the
REQ_NOWAIT_INLINE related code, but the diff wasn't applied to
blk_types.h somehow.

Then commit a835071977af ("block: remove the REQ_NOWAIT_INLINE flag")
removed the REQ_NOWAIT_INLINE flag while the BLK_QC_T_EAGAIN flag still
remains.

Fixes: 8881f9ecd517 ("block: remove REQ_NOWAIT_INLINE")
Signed-off-by: Jeffle Xu <jefflexu@linux.alibaba.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/blk_types.h

index 4ecf4fed171f0d5e97ec9d41abb9567a6c590c81..b3fc5d3dd8ea16adf672b6bb1a35a0ef791a4719 100644 (file)
@@ -497,13 +497,12 @@ static inline int op_stat_group(unsigned int op)
 
 typedef unsigned int blk_qc_t;
 #define BLK_QC_T_NONE          -1U
-#define BLK_QC_T_EAGAIN                -2U
 #define BLK_QC_T_SHIFT         16
 #define BLK_QC_T_INTERNAL      (1U << 31)
 
 static inline bool blk_qc_t_valid(blk_qc_t cookie)
 {
-       return cookie != BLK_QC_T_NONE && cookie != BLK_QC_T_EAGAIN;
+       return cookie != BLK_QC_T_NONE;
 }
 
 static inline unsigned int blk_qc_t_to_queue_num(blk_qc_t cookie)