Skip to content

block/blkio: fix fd leak and add more comments for the fd passing

Stefano Garzarella qemu-devel 2 versions – Applied

Status from this message: Thanks, applied to my block tree:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 2 repliesApplied
  2. v12 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- avoid to use fd_supported to track a valid fd [Hanna]

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2block/blkio: close the fd when blkio_connect() failsblock/blkio.c+8 -31 reply
2/2block/blkio: add more comments on the fd passing handlingblock/blkio.c+12 -30 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchHanna Czenczek
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] block/blkio: fix fd leak and add more comments for the fd passing

Hanna discovered an fd leak in the error path, and a few comments to improve in the code.

v2:
- avoid to use fd_supported to track a valid fd [Hanna]

v1: https://lore.kernel.org/qemu-devel/[email protected]/

Stefano Garzarella (2):
block/blkio: close the fd when blkio_connect() fails block/blkio: add more comments on the fd passing handling

 block/blkio.c | 26 ++++++++++++++++++++------
 1 file changed, 20 insertions(+), 6 deletions(-)
Signature · 1 line
2.41.0