]> git.baikalelectronics.ru Git - kernel.git/commit
blkcg: fix edge case for blk_get_rl() under memory pressure
authorDennis Zhou <dennis@kernel.org>
Sat, 20 Oct 2018 18:56:11 +0000 (14:56 -0400)
committerJens Axboe <axboe@kernel.dk>
Sat, 20 Oct 2018 21:39:54 +0000 (15:39 -0600)
commitb9ad010c9da9a2f92476f96ddd1b7a2821ef1887
treee55b5f8cb1fd71a8a72013b3bff8147de415b979
parent03639f512a1772a0dd151f77d5fa300c181a11e0
blkcg: fix edge case for blk_get_rl() under memory pressure

It is possible for blkg creation to fail when in blk_get_rl(). In this
situation, the fallback logic returns the nearest created blkg. There is
however special handling for the request_list for the root blkcg. This
fixes the missing edge case from the earlier series changing
blk_get_rl().

Fixes: a9a0f3d93bbd ("blkcg: cleanup and make blk_get_rl use blkg_lookup_create")
Signed-off-by: Dennis Zhou <dennis@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/blk-cgroup.h