davide 6865adbf59 Fix a panic in zfs_rename().
this is due to a wrong dereference of a vnode when it's not locked and
can be (potentially) recycled. 'sdvp' cannot be locked on zfs_rename()
entry point because the VFS can't be sure that this scenario is
LOR-free (it might violate the parent->child lock acquisition rule).
Dereference 'tdvp' instead, which is already locked on entry, and access
'sdvp' fields only when it's safe, i.e. under ZFS_ENTER scope.

While at it, remove the usage of VOP_REALVP, as long as this is a NOP
on FreeBSD.

Discussed with:	avg
Reviewed by:	pjd
2014-04-13 01:15:37 +00:00
..
2014-04-08 04:05:04 +00:00
2014-04-07 20:44:00 +00:00
2014-04-10 05:04:23 +00:00
2014-04-13 01:15:37 +00:00
2014-03-31 16:37:41 +00:00
2013-11-29 20:14:26 +00:00
2014-04-09 03:46:04 +00:00
2014-03-14 02:58:48 +00:00
2014-03-14 06:29:43 +00:00
2014-04-11 21:00:59 +00:00
2014-04-07 07:06:13 +00:00
2014-02-06 13:28:06 +00:00
2014-04-05 22:43:18 +00:00
2014-04-05 22:43:18 +00:00
2014-03-14 06:29:43 +00:00