Tobias Holzer wrote:
> Hi,
> 
> i have RTnet 0.9.11 running. Sometimes the Console stalls on a call to
> `rtifconfig <dev> down`.
> 
> I don`t know if it might be caused by using realtime spinlocks in non
> realtime context as it is done in rtnet_chrdev.c at line 168 for
> example. I have copied the a part of this code so you can have a quick
> look at it:
> 
>         case IOC_RT_IFDOWN:
>             if (mutex_lock_interruptible(&rtdev->nrt_lock))
>                 return -ERESTARTSYS;
> 
>             /* spin lock required for sync with routing code */
>             rtdm_lock_get_irqsave(&rtdev->rtdev_lock, context);

Nope, this code is perfectly valid (forbidden is acquiring non-RT locks
from RT context or requesting non-RT locks while holding a RT locks).

What is your setup? What parts of RTnet are you using, what driver, how
does your setup and cleanup procedure look like? Is there any
application still using RTnet while you try to shut down? And are there
any interesting messages on the kernel console?

Jan

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Download Intel&reg; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs 
proactively, and fine-tune applications for parallel performance. 
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
RTnet-users mailing list
RTnet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rtnet-users

Reply via email to