Re: [PATCH] Add locking to twe(4) so it no longer uses Giant

From: Mike Tancsa <mike_at_sentex.net>
Date: Fri, 10 Aug 2012 09:52:38 -0400
On 8/10/2012 9:31 AM, John Baldwin wrote:
> On 8/9/12 5:04 PM, Mike Tancsa wrote:
>> Start up the tw_cli client
>>
>> 0{offsite2}# tw_cli
>> //offsite2> show
>>
>> Ctl   Model        (V)Ports  Drives   Units   NotOpt  RRate   VRate  BBU
>> ------------------------------------------------------------------------
>> c0    9650SE-2LP   2         2        1       0       1       1      -
>>
>>
>> //offsite2> exit
>> 0{offsite2}# ls -l /dev/tw*
>> crw-------  1 root  operator  -   0,  37 Aug  9 16:58 /dev/twa0
>> crw-r-----  1 root  operator  -   0, 174 Aug  9 17:00 /dev/twed0
>> 0{offsite2}#
>>
>>
>> It then disappears ?!
> 
> Bizarre, it seems to disappear while tw_cli is running?  I'm curious if
> 'rm -W /dev/twe0' brings it back?

nada
0{offsite2}# rm -W /dev/twe0
rm: /dev/twe0: No such file or directory
1{offsite2}# rm -W /dev/twe0
rm: /dev/twe0: No such file or directory
1{offsite2}# ls -l /dev/twe*
crw-r-----  1 root  operator  -   0, 174 Aug  9 17:00 /dev/twed0
0{offsite2}#

> 
> If so, it might be interesting to see a ktrace of tw_cli.
> 

I just ran ktrace tw_cli
File is available at

http://www.tancsa.com/misc/ktrace.out
and
http://www.tancsa.com/misc/ktrace.txt

	---Mike

-- 
-------------------
Mike Tancsa, tel +1 519 651 3400
Sentex Communications, mike_at_sentex.net
Providing Internet services since 1994 www.sentex.net
Cambridge, Ontario Canada   http://www.tancsa.com/
Received on Fri Aug 10 2012 - 11:52:51 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:29 UTC