<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/fs/devfs, branch release/13.2.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F13.2.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F13.2.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2022-02-09T06:18:56Z</updated>
<entry>
<title>fs: fix a few common typos in source code comments</title>
<updated>2022-02-09T06:18:56Z</updated>
<author>
<name>Gordon Bergling</name>
<email>gbe@FreeBSD.org</email>
</author>
<published>2022-02-06T12:48:31Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=061c19c2bd29454eba63d33526fde8f5b5274477'/>
<id>urn:sha1:061c19c2bd29454eba63d33526fde8f5b5274477</id>
<content type='text'>
- s/quadradically/quadratically/
- s/persistant/persistent/

Obtained from:	NetBSD

(cherry picked from commit 8ea3ceda7644b7b93532d0c31b50ac5fa61e51a3)
</content>
</entry>
<entry>
<title>devfs: fix use count leak when using TIOCSCTTY</title>
<updated>2021-04-10T05:57:55Z</updated>
<author>
<name>Mateusz Guzik</name>
<email>mjg@FreeBSD.org</email>
</author>
<published>2021-02-08T22:10:57Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c3437848d8683f6ad03a15bde201c4ead541378e'/>
<id>urn:sha1:c3437848d8683f6ad03a15bde201c4ead541378e</id>
<content type='text'>
by matching devfs_ctty_ref

Fixes: 3b44443626603f65 ("devfs: rework si_usecount to track opens")
(cherry picked from commit 3bc17248d31794519ba95b2c6b9ff8a0d31dba81)
</content>
</entry>
<entry>
<title>devfs(4): defer freeing until we drop devmtx ("cdev")</title>
<updated>2020-12-29T13:47:36Z</updated>
<author>
<name>Edward Tomasz Napierala</name>
<email>trasz@FreeBSD.org</email>
</author>
<published>2020-12-29T13:45:53Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4ddb3cc5973b94b0502e1683accac87998235857'/>
<id>urn:sha1:4ddb3cc5973b94b0502e1683accac87998235857</id>
<content type='text'>
Before r332974 the old code would sometimes cause a rare lock order
reversal against pagequeue, which looked roughly like this:

witness_checkorder()
__mtx_lock-flags()
vm_page_alloc()
uma_small_alloc()
keg_alloc_slab()
keg_fetch-slab()
zone_fetch-slab()
zone_import()
zone_alloc_bucket()
uma_zalloc_arg()
bucket_alloc()
uma_zfree_arg()
free()
devfs_metoo()
devfs_populate_loop()
devfs_populate()
devfs_rioctl()
VOP_IOCTL_APV()
VOP_IOCTL()
vn_ioctl()
fo_ioctl()
kern_ioctl()
sys_ioctl()

Since r332974 the original problem no longer exists, but it still
makes sense to move things out of the - often congested - lock.

Reviewed By:	kib, markj
Sponsored by:	NetApp, Inc.
Sponsored by:	Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D27334
</content>
</entry>
<entry>
<title>fs: clean up empty lines in .c and .h files</title>
<updated>2020-09-01T21:18:40Z</updated>
<author>
<name>Mateusz Guzik</name>
<email>mjg@FreeBSD.org</email>
</author>
<published>2020-09-01T21:18:40Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=586ee69f09c5060621486b34722a4a806581f93d'/>
<id>urn:sha1:586ee69f09c5060621486b34722a4a806581f93d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>devfs: Abstract locking assertions</title>
<updated>2020-08-12T00:32:31Z</updated>
<author>
<name>Conrad Meyer</name>
<email>cem@FreeBSD.org</email>
</author>
<published>2020-08-12T00:32:31Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0ac9e27ba964b4d29ed180d5e546873de638822c'/>
<id>urn:sha1:0ac9e27ba964b4d29ed180d5e546873de638822c</id>
<content type='text'>
The conversion was largely mechanical: sed(1) with:

  -e 's|mtx_assert(&amp;devmtx, MA_OWNED)|dev_lock_assert_locked()|g'
  -e 's|mtx_assert(&amp;devmtx, MA_NOTOWNED)|dev_lock_assert_unlocked()|g'

The definitions of these abstractions in fs/devfs/devfs_int.h are the
only non-mechanical change.

No functional change.
</content>
</entry>
<entry>
<title>devfs: rework si_usecount to track opens</title>
<updated>2020-08-11T14:27:57Z</updated>
<author>
<name>Mateusz Guzik</name>
<email>mjg@FreeBSD.org</email>
</author>
<published>2020-08-11T14:27:57Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3b44443626603f65bba2804f08a7dfa6e6675bb4'/>
<id>urn:sha1:3b44443626603f65bba2804f08a7dfa6e6675bb4</id>
<content type='text'>
This removes a lot of special casing from the VFS layer.

Reviewed by:	kib (previous version)
Tested by:	pho (previous version)
Differential Revision:	https://reviews.freebsd.org/D25612
</content>
</entry>
<entry>
<title>devfs: bool -&gt; int</title>
<updated>2020-08-10T11:46:39Z</updated>
<author>
<name>Mateusz Guzik</name>
<email>mjg@FreeBSD.org</email>
</author>
<published>2020-08-10T11:46:39Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ca423b858bf4800bb22963e8133b72499bb18d24'/>
<id>urn:sha1:ca423b858bf4800bb22963e8133b72499bb18d24</id>
<content type='text'>
Fixes buildworld after r364069
</content>
</entry>
<entry>
<title>devfs: save on spurious relocking for devfs_populate</title>
<updated>2020-08-10T10:36:43Z</updated>
<author>
<name>Mateusz Guzik</name>
<email>mjg@FreeBSD.org</email>
</author>
<published>2020-08-10T10:36:43Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7b19bddac8f6ae5a356ffbca80f087d3654b8363'/>
<id>urn:sha1:7b19bddac8f6ae5a356ffbca80f087d3654b8363</id>
<content type='text'>
Tested by:	pho
</content>
</entry>
<entry>
<title>devfs: use cheaper lockmgr entry points</title>
<updated>2020-08-10T10:36:10Z</updated>
<author>
<name>Mateusz Guzik</name>
<email>mjg@FreeBSD.org</email>
</author>
<published>2020-08-10T10:36:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f8935a96d1bc34839cf10ea1ddc45afbdab513d4'/>
<id>urn:sha1:f8935a96d1bc34839cf10ea1ddc45afbdab513d4</id>
<content type='text'>
Tested by:	pho
</content>
</entry>
<entry>
<title>devfs: use vget_prep/vget_finish</title>
<updated>2020-08-10T10:35:47Z</updated>
<author>
<name>Mateusz Guzik</name>
<email>mjg@FreeBSD.org</email>
</author>
<published>2020-08-10T10:35:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f9c13ab856573b95d27b4349b456de513c2d11af'/>
<id>urn:sha1:f9c13ab856573b95d27b4349b456de513c2d11af</id>
<content type='text'>
Tested by:	pho
</content>
</entry>
</feed>
