-
Kent Overstreet authored
AIO had a missing get, which led to an ioctx leak - after percpu_ref_kill() the ref was 0 so percpu_ref_put() never saw it hit 0. This wasn't noticed at the time because it all happened completely silently, this adds a WARN() which would've caught the aio bug. tj: Used WARN_ONCE() instead of WARN(). Signed-off-by:
Kent Overstreet <kmo@daterainc.com> Signed-off-by:
Tejun Heo <tj@kernel.org>
Kent Overstreet authoredAIO had a missing get, which led to an ioctx leak - after percpu_ref_kill() the ref was 0 so percpu_ref_put() never saw it hit 0. This wasn't noticed at the time because it all happened completely silently, this adds a WARN() which would've caught the aio bug. tj: Used WARN_ONCE() instead of WARN(). Signed-off-by:
Kent Overstreet <kmo@daterainc.com> Signed-off-by:
Tejun Heo <tj@kernel.org>
Code owners
Assign users and groups as approvers for specific file changes. Learn more.