Re: [PATCH 2/2] cdrom: gdrom: update gendisk capacity on open

From: Adrian McMenamin

Date: Mon Apr 06 2026 - 06:01:10 EST


Florian,

On Mon, 6 Apr 2026 at 10:20, Florian Fuchs <fuchsfl@xxxxxxxxx> wrote:


>
> You mean, because one of the functions in the call tree of
> gdrom_update_capacity() wants to get the mutex gdrom_mutex or s_umount?
> I checked the locally called functions, but don't see that one tries to
> aquire a lock.
>
> I don't understand the exact potential of the race condition, maybe you
> can elaborate, where I should look.
>


Actually, having looked at the code path in detail too I agree that
this won't recreate the problem the earlier patch addressed, so this
looks good to me.