blkcg: remove unnecessary request_list->blkg NULL test in blk_put_rl()
Since ec13b1d6f0
("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: Tejun Heo <tj@kernel.org>
Cc: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
This commit is contained in:
Родитель
60a837077e
Коммит
401efbf835
|
@ -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)
|
||||
blkg_put(rl->blkg);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче