Re: [PATCH v2 (resend)] media: imon: reorganize serialization

Tetsuo Handa
2022-05-02T13:40:56Z

On 2022/05/02 12:49, Tetsuo Handa wrote:
> @@ -153,6 +153,24 @@ struct imon_context {
> const struct imon_usb_dev_descr *dev_descr;
> /* device description with key */
> /* table for front panels */
> + /*
> + * Fields for deferring free_imon_context().
> + *
> + * Since reference to "struct imon_context" is stored into
> + * "struct file_operations"->private_data, we need to remember

Oops. This is "struct file"->private_data. Please correct when applying. ;-)

> + * how many file descriptors might access this "struct imon_context".
> + */
> + refcount_t users;