[LTP] [PATCH] lib: make tst_detach_device_by_fd() also close dev_fd
Petr Vorel
pvorel@suse.cz
Thu Aug 15 09:29:35 CEST 2024
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
> 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