Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Sep 2014 11:46:57 -0500
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        FreeBSD FS <freebsd-fs@FreeBSD.org>
Subject:   ZFS deadlock in zfs_lookup/zfs_dirent_lock on head r271170
Message-ID:  <541C5E01.9050609@FreeBSD.org>

next in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--AovFtsMAopsf2pnHgGh8EofEDRv3pS57s
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

rename is: https://people.freebsd.org/~bdrewery/rename.c

All files are in the same mountpoint.

> # ps uaxwww|egrep "(rm|rename)"
> root    96901    0.0  0.0  12300  1948  2  D+   11:01AM    0:00.00 rm -=
rf /poudriere/data/.m/exp-head-commit-test-devel/ref/.p/cleaning/deps/py2=
7-PasteScript-1.7.5_2
> root    96903    0.0  0.0   8196  1912  2  D+   11:01AM    0:00.00 rena=
me /poudriere/data/.m/exp-head-commit-test-devel/ref/.p/deps/py27-PasteDe=
ploy-1.5.0_1 /poudriere/data/.m/exp-head-commit-test-devel/ref/.p/cleanin=
g/deps/py27-PasteDeploy-1.5.0_1
> root     3720    0.0  0.0   8196  1912  3  D+   11:05AM    0:00.00 ./re=
name /poudriere/data/.m/exp-head-commit-test-devel/ref/.p/deps/py27-Paste=
Deploy-1.5.0_1 /poudriere/data/.m/exp-head-commit-test-devel/ref/.p/clean=
ing/deps/py27-PasteDeploy-1.5.0_1
>=20
> # procstat -kka|egrep "(96901|96903|3720)"
>  3720 100969 rename           -                mi_switch+0x179 sleepq_s=
witch+0x152 sleepq_wait+0x43 _cv_wait+0x1da zfs_dirent_lock+0x212 zfs_dir=
look+0x1b0 zfs_lookup+0x223 zfs_freebsd_lookup+0x91 VOP_CACHEDLOOKUP_APV+=
0xf1 vfs_cache_lookup+0xd6 VOP_LOOKUP_APV+0xf1 lookup+0x5ad namei+0x4e4 k=
ern_renameat+0x95 filemon_wrapper_rename+0x19 amd64_syscall+0x25a Xfast_s=
yscall+0xfb
> 96901 101213 rm               -                mi_switch+0x179 sleepq_s=
witch+0x152 sleepq_wait+0x43 sleeplk+0x14a __lockmgr_args+0x862 vop_stdlo=
ck+0x3c VOP_LOCK1_APV+0xfc _vn_lock+0xaa zfs_lookup+0x462 zfs_freebsd_loo=
kup+0x91 VOP_CACHEDLOOKUP_APV+0xf1 vfs_cache_lookup+0xd6 VOP_LOOKUP_APV+0=
xf1 lookup+0x5ad namei+0x4e4 kern_statat_vnhook+0xae sys_fstatat+0x2c amd=
64_syscall+0x25a
> 96903 101290 rename           -                mi_switch+0x179 sleepq_s=
witch+0x152 sleepq_wait+0x43 sleeplk+0x14a __lockmgr_args+0xea1 vop_stdlo=
ck+0x3c VOP_LOCK1_APV+0xfc _vn_lock+0xaa vputx+0x232 zfs_rename_unlock+0x=
78 zfs_freebsd_rename+0xfbb VOP_RENAME_APV+0xfc kern_renameat+0x3ef filem=
on_wrapper_rename+0x19 amd64_syscall+0x25a Xfast_syscall+0xfb
>=20
> # procstat -kka|grep zfs
>     0 100698 kernel           zfs_vn_rele_task mi_switch+0x179 sleepq_s=
witch+0x152 sleepq_wait+0x43 _sleep+0x366 taskqueue_thread_loop+0xc8 fork=
_exit+0x84 fork_trampoline+0xe
>     3 100159 zfskern          arc_reclaim_thre mi_switch+0x179 sleepq_s=
witch+0x152 sleepq_timedwait+0x43 _cv_timedwait_sbt+0x200 arc_reclaim_thr=
ead+0x2de fork_exit+0x84 fork_trampoline+0xe
>     3 100160 zfskern          l2arc_feed_threa mi_switch+0x179 sleepq_s=
witch+0x152 sleepq_timedwait+0x43 _cv_timedwait_sbt+0x200 l2arc_feed_thre=
ad+0x1d8 fork_exit+0x84 fork_trampoline+0xe
>     3 100681 zfskern          trim zroot       mi_switch+0x179 sleepq_s=
witch+0x152 sleepq_timedwait+0x43 _cv_timedwait_sbt+0x200 trim_thread+0x9=
e fork_exit+0x84 fork_trampoline+0xe
>     3 100715 zfskern          txg_thread_enter mi_switch+0x179 sleepq_s=
witch+0x152 sleepq_wait+0x43 _cv_wait+0x1da txg_thread_wait+0x9b txg_quie=
sce_thread+0x420 fork_exit+0x84 fork_trampoline+0xe
>     3 100716 zfskern          txg_thread_enter mi_switch+0x179 sleepq_s=
witch+0x152 sleepq_wait+0x43 _cv_wait+0x1da zio_wait+0x9b dsl_pool_sync+0=
x35c spa_sync+0x530 txg_sync_thread+0x24d fork_exit+0x84 fork_trampoline+=
0xe
>  3720 100969 rename           -                mi_switch+0x179 sleepq_s=
witch+0x152 sleepq_wait+0x43 _cv_wait+0x1da zfs_dirent_lock+0x212 zfs_dir=
look+0x1b0 zfs_lookup+0x223 zfs_freebsd_lookup+0x91 VOP_CACHEDLOOKUP_APV+=
0xf1 vfs_cache_lookup+0xd6 VOP_LOOKUP_APV+0xf1 lookup+0x5ad namei+0x4e4 k=
ern_renameat+0x95 filemon_wrapper_rename+0x19 amd64_syscall+0x25a Xfast_s=
yscall+0xfb
> 96901 101213 rm               -                mi_switch+0x179 sleepq_s=
witch+0x152 sleepq_wait+0x43 sleeplk+0x14a __lockmgr_args+0x862 vop_stdlo=
ck+0x3c VOP_LOCK1_APV+0xfc _vn_lock+0xaa zfs_lookup+0x462 zfs_freebsd_loo=
kup+0x91 VOP_CACHEDLOOKUP_APV+0xf1 vfs_cache_lookup+0xd6 VOP_LOOKUP_APV+0=
xf1 lookup+0x5ad namei+0x4e4 kern_statat_vnhook+0xae sys_fstatat+0x2c amd=
64_syscall+0x25a
> 96903 101290 rename           -                mi_switch+0x179 sleepq_s=
witch+0x152 sleepq_wait+0x43 sleeplk+0x14a __lockmgr_args+0xea1 vop_stdlo=
ck+0x3c VOP_LOCK1_APV+0xfc _vn_lock+0xaa vputx+0x232 zfs_rename_unlock+0x=
78 zfs_freebsd_rename+0xfbb VOP_RENAME_APV+0xfc kern_renameat+0x3ef filem=
on_wrapper_rename+0x19 amd64_syscall+0x25a Xfast_syscall+0xfb



--=20
Regards,
Bryan Drewery


--AovFtsMAopsf2pnHgGh8EofEDRv3pS57s
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)

iQEcBAEBAgAGBQJUHF4BAAoJEDXXcbtuRpfPVR0IAIcZ4BjwbiTR8swchS0kRyIl
ih7vIFncj1bsNOKJAv0myReNWKdBBuCpsUgqxdygf75K9vCVQvzF+lIpVACMrekq
O+ilOptnxYGLtTA8xjaIJLomcgp9u6xGVnDUhzPM9azAURVlvb9ARTPLqtrEA3vc
T/NpQyRGNlr9/Ysc+amEvpaBaHsaG2lvQRT20A7hyNamtF3j8LP2qCjxnEMnD2lm
YFXpbknGDaJmW9foGPPzAqW4+d8e7/kbDfyUo7Zo71NXSaAzu0aAuvIHoWfyEgPC
w0ji2+G/pOtgEqjHWRYR+XxVcYWqh1GW6717wbVuhgwbg9c4Cl4/+OJjCcRdqr8=
=HxW9
-----END PGP SIGNATURE-----

--AovFtsMAopsf2pnHgGh8EofEDRv3pS57s--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?541C5E01.9050609>