Re: ataraid(4) missing disk handling

Christoph Badura <[email protected]>
Newsgroups gmane.os.netbsd.devel.kernel
Message-ID <[email protected]>
On Tue, Mar 11, 2025 at 04:33:51PM +0200, Andrius V wrote:
> The major difference is that vn_bdev_open() increments  (*vpp)->v_writecount++;
> That prevents from the v_writecount >  0 assert failure on vn_close()
> (https://nxr.netbsd.org/xref/src/sys/dev/ata/ld_ataraid.c#249)
> 
> My only concern was that on successful path incremented value will
> stay equal 1 and if it may cause unexpected later on.

But vn_close() decrements v_writecount.  So that is fine.

--chris
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.