[LTP] [PATCH] lib: make tst_detach_device_by_fd() also close dev_fd

Jan Stancek jstancek@redhat.com
Mon Aug 19 15:11:33 CEST 2024


On Thu, Aug 15, 2024 at 9:29 AM Petr Vorel <pvorel@suse.cz> wrote:
>
> Hi Jan,
>
> thanks a lot for fixing this!
>
> Reviewed-by: Petr Vorel <pvorel@suse.cz>
> Tested-by: Petr Vorel <pvorel@suse.cz>
> Closes: https://github.com/linux-test-project/ltp/issues/1175

Pushed.

>
> > Since commit 18048c1af783 ("loop: Fix a race between loop detach and loop open")
> > detach operation is deferred to the last close of the device.
>
> > Make tst_detach_device_by_fd() also close dev_fd, and leave it up to
> > caller to re-open it for further use.
>
> 6.11.0-rc3-2.g00af0c0-default
>
> Kind regards,
> Petr
>



More information about the ltp mailing list