Subject: Re: vnlock problem
To: Frank van der Linden <frank@wins.uva.nl>
From: Patrick Welche <prlw1@newn.cam.ac.uk>
List: current-users
Date: 04/20/2000 13:09:22
On Thu, Apr 20, 2000 at 01:51:43PM +0200, Frank van der Linden wrote:
> 
> Or just make ahc_check_tags return immediately without doing anything.

I'll try it without probably on Tuesday - but was that correct that it didn't
used to do tagged queuing? (I'm just looking for differences..)

> What is the brand and type of this SCSI disk?

ahc0: target 0 synchronous at 20.0MHz, offset = 0xf
ahc0: target 0 using tagged queuing
sd0 at scsibus0 target 0 lun 0: <QUANTUM, XP34550S, LXY1> SCSI2 0/direct fixed
sd0: 4341 MB, 5899 cyl, 10 head, 150 sec, 512 bytes/sect x 8890760 sectors
ahc0: target 2 synchronous at 20.0MHz, offset = 0xf
ahc0: target 2 using tagged queuing
sd1 at scsibus0 target 2 lun 0: <QUANTUM, XP34550S, LXY4> SCSI2 0/direct fixed
sd1: 4341 MB, 5899 cyl, 10 head, 150 sec, 512 bytes/sect x 8890760 sectors
ahc0: target 4 using asynchronous transfers
cd1 at scsibus0 target 4 lun 0: <YAMAHA, CRW2260, 1.0g> SCSI2 5/cdrom removable

Now I have a DEBUG kernel and tried printlockedvnodes which returned 0, but
I just saw this on the console:

Locked vnodes
tag 1 type VDIR, usecount 3, writecount 0, refcount 0,
        tag VT_UFS, ino 22571, on dev 4, 12 flags 0xe, effnlink 2, nlink 2
        mode 040755, owner 0, group 0, size 22016 lock type vnlock: EXCL (count 1) by pid 16724
tag 1 type VREG, usecount 0, writecount 0, refcount 1,
        tag VT_UFS, ino 22961, on dev 4, 12 flags 0x0, effnlink 0, nlink 0
        mode 0100644, owner 0, group 0, size 899 lock type vnlock: EXCL (count 1) by pid 16724


  UID   PID  PPID CPU PRI NI   VSZ  RSS WCHAN  STAT TT       TIME COMMAND
    0 16724 16718  25  -5  0   224  128 vinval D+   p1    0:00.05 rm

The rm'd file is on /dev/sd1e (/usr/obj asynchronous, local, noatime)

Cheers,

Patrick