block: blk-zoned: fix zwplug refcount leak on write error path#888
block: blk-zoned: fix zwplug refcount leak on write error path#888blktests-ci[bot] wants to merge 1 commit into
Conversation
|
Upstream branch: eed108e |
de94ac7 to
86d8d37
Compare
|
Upstream branch: e8c2f9f |
00a5962 to
1d30d19
Compare
86d8d37 to
9805659
Compare
|
Upstream branch: eb3f4b7 |
1d30d19 to
32770cb
Compare
9805659 to
3f4a345
Compare
|
Upstream branch: 8fde5d1 |
32770cb to
9c23e12
Compare
3f4a345 to
c6dc343
Compare
|
Upstream branch: e43ffb6 |
9c23e12 to
d0936d0
Compare
c6dc343 to
fc36596
Compare
|
Upstream branch: ba3e43a |
d0936d0 to
9435670
Compare
fc36596 to
7bed9c3
Compare
|
Upstream branch: ddd664b |
9435670 to
cac684c
Compare
7bed9c3 to
a7bb5c5
Compare
|
Upstream branch: 979c294 |
cac684c to
f8cc981
Compare
a7bb5c5 to
5e41a3b
Compare
|
Upstream branch: acb7500 |
f8cc981 to
e234072
Compare
5e41a3b to
c3a084b
Compare
|
Upstream branch: 9716c08 |
e234072 to
234cc96
Compare
c3a084b to
5f78e5d
Compare
|
Upstream branch: 2a2974b |
234cc96 to
d3acaf6
Compare
5f78e5d to
e48f9db
Compare
|
Upstream branch: 062871f |
d3acaf6 to
795fa68
Compare
199644a to
e6d9eb8
Compare
|
Upstream branch: 66affa3 |
795fa68 to
99c4ddd
Compare
e6d9eb8 to
7d8604f
Compare
blk_zone_wplug_handle_write() increments zwplug->ref via kref_get() when preparing to handle a zone write. On the error path where blk_zone_wplug_handle_write_noalloc() fails, the function returns without calling kref_put() on zwplug->ref, leaking the reference. Add kref_put(&zwplug->ref, ...) on the error path to properly release the reference. Fixes: dd291d7 ("block: Introduce zone write plugging") Cc: stable@vger.kernel.org Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
|
Upstream branch: bade58e |
99c4ddd to
e706ffd
Compare
Pull request for series with
subject: block: blk-zoned: fix zwplug refcount leak on write error path
version: 1
url: https://patchwork.kernel.org/project/linux-block/list/?series=1101020