Date: Sun, 12 Jan 2003 11:21:32 +0100 From: phk@freebsd.org To: Lars Eggert <larse@ISI.EDU> Cc: current <current@freebsd.org> Subject: Re: VOP_SPECSTRATEGY on non-VCHR Message-ID: <4875.1042366892@critter.freebsd.dk> In-Reply-To: Your message of "Thu, 09 Jan 2003 11:36:17 PST." <3E1DCF31.4080905@isi.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <3E1DCF31.4080905@isi.edu>, Lars Eggert writes: >just got this on today's -current, when accessing a mounted NTFS partition: > >VOP_SPECSTRATEGY on non-VCHR >: 0xc6d73c34: tag ntfs, type VREG, usecount 3, writecount 0, refcount 0, >flags (VV_OBJBUF), lock type ntfs: SHARED (count 1) Can you try this patch ? Index: vnode_pager.c =================================================================== RCS file: /home/ncvs/src/sys/vm/vnode_pager.c,v retrieving revision 1.167 diff -u -r1.167 vnode_pager.c --- vnode_pager.c 5 Jan 2003 20:32:03 -0000 1.167 +++ vnode_pager.c 12 Jan 2003 10:21:08 -0000 @@ -823,7 +823,10 @@ cnt.v_vnodepgsin += count; /* do the input */ - VOP_SPECSTRATEGY(bp->b_vp, bp); + if (dp->v_type == VCHR) + VOP_SPECSTRATEGY(bp->b_vp, bp); + else + VOP_STRATEGY(bp->b_vp, bp); s = splvm(); /* we definitely need to be at splvm here */ -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4875.1042366892>