Commit 401efbf8 authored by Tejun Heo's avatar Tejun Heo Committed by Jens Axboe
Browse files

blkcg: remove unnecessary request_list->blkg NULL test in blk_put_rl()

Since ec13b1d6

 ("blkcg: always create the blkcg_gq for the root
blkcg"), a request_list always has its blkg associated.  Drop
unnecessary rl->blkg NULL test from blk_put_rl().
Signed-off-by: default avatarTejun Heo <>
Cc: Vivek Goyal <>
Signed-off-by: default avatarJens Axboe <>
parent 60a83707
......@@ -394,8 +394,7 @@ root_rl:
static inline void blk_put_rl(struct request_list *rl)
/* root_rl may not have blkg set */
if (rl->blkg && rl->blkg->blkcg != &blkcg_root)
if (rl->blkg->blkcg != &blkcg_root)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment