Re: [PATCH] usb: gadget: f_mass_storage: forced_eject attribute

From: Maxim Devaev
Date: Wed Jul 06 2022 - 13:55:04 EST


В Wed, 6 Jul 2022 20:46:34 +0300
Maxim Devaev <mdevaev@xxxxxxxxx> wrote:

> The patch is a completely alternative implementation of the previously
> proposed [1], the idea of which was born after the mentioned discussion.
> Link: https://lore.kernel.org/lkml/20220406092445.215288-1-mdevaev@xxxxxxxxx [1]

A small comment after that, which is not worth mentioning in the body of the patch.
As discussed in the previous thread, I made a clean implementation to reset
the prevent_medium_removal flag instead of using SIGUSR1, tested it myself,
and then on several thousand of my users. I haven't received a single complaint
in a few months, so I guess everything is working as intended.