From: Richard Weinberger <richard@nod.at>
To: Jan Kiszka <jan.kiszka@siemens.com>
Cc: xenomai <xenomai@xenomai.org>
Subject: Re: RTDM module ownership
Date: Fri, 3 Jul 2020 11:26:52 +0200 (CEST) [thread overview]
Message-ID: <1369055393.86744.1593768412852.JavaMail.zimbra@nod.at> (raw)
In-Reply-To: <50c505c0-39bc-26c0-6188-1e2a2fe41536@siemens.com>
----- Ursprüngliche Mail -----
>>> First of all, your driver is apparently not reacting on the close
>>> request that it receives in that case. This leads the the stall you see.
>>
>> Huh? rmmmod triggers close of what?
>> *confused*
>>
>
> rmmod -> module cleanup -> rtdm_dev_unregister -> rtdm_device_flush_fds
Sure. The driver has a close method where it cleans up everything, of course.
But it can't force userspace to close the fd, Linux has no fd revocation
mechanism.
>>> Still, we could indeed run some module_put/get on open/socket/close. I
>>> thought we did, but that was once RTnet [1].
>>
>> Yes. Would be nice. :-)
>>
>
> Just like a patch would be...
Pushed to my TODO...
Thanks,
//richard
prev parent reply other threads:[~2020-07-03 9:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-02 8:32 RTDM module ownership Richard Weinberger
2020-07-03 6:14 ` Jan Kiszka
2020-07-03 6:22 ` Richard Weinberger
2020-07-03 9:10 ` Jan Kiszka
2020-07-03 9:26 ` Richard Weinberger [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1369055393.86744.1593768412852.JavaMail.zimbra@nod.at \
--to=richard@nod.at \
--cc=jan.kiszka@siemens.com \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.