kern/153351: [zfs] locking directories/files in ZFS

Vladislav V. Prodan universite at ukr.net
Fri Jan 7 19:26:09 UTC 2011


22.12.2010 11:00, Vladislav V. Prodan пишет:
> The following reply was made to PR kern/153351; it has been noted by GNATS.
> 
> From: "Vladislav V. Prodan" <universite at ukr.net>
> To: bug-followup at FreeBSD.org
> Cc:  
> Subject: Re: kern/153351: [zfs] locking directories/files in ZFS
> Date: Wed, 22 Dec 2010 10:54:53 +0200
> 
>  zfs snapshot tank/www at temp
>  zfs rollback   tank/www at temp
>  
>  also did not help. :(
>  

Now lock the other directory: (
how to stop this process?

# ll /www/cargotek/data/logs/cargotek.ru.error.log.1
-rw-r-----  1 root  cargotek  984039  7 янв 21:23
/www/cargotek/data/logs/cargotek.ru.error.log.1

# ps -axww | grep ls
82467  ??  D      7:46,78 find -sx / /backup /usr /usr/home /var
/var/db/mysql /var/db/mysql/ibdata /var/db/mysql/iblogs /www /dev/null
-type f ( -perm -u+x -or -perm -g+x -or -perm -o+x ) ( -perm -u+s -or
-perm -g+s ) -exec ls -liTd {} +
51731   2  D+     0:00,00 ls -lA /www/cargotek/data
51736   9  D+     0:00,00 ls /www/cargotek/data
52498  11  D+     0:00,00 ls -lA /www/cargotek/data/

# procstat -kk 82467 52498 51731   51736
  PID    TID COMM             TDNAME           KSTACK
82467 100263 find             -                mi_switch+0x174
sleepq_wait+0x42 __lockmgr_args+0x73b vop_stdlock+0x39
VOP_LOCK1_APV+0x46 _vn_lock+0x47 vget+0x70 cache_lookup+0x4fe
vfs_cache_lookup+0xc0 VOP_LOOKUP_APV+0x40 lookup+0x49a namei+0x53a
vn_open_cred+0x3db kern_openat+0x181 syscallenter+0x2cf syscall+0x4b
Xfast_syscall+0xe2
52498 100301 ls               -                mi_switch+0x174
sleepq_wait+0x42 __lockmgr_args+0x73b vop_stdlock+0x39
VOP_LOCK1_APV+0x46 _vn_lock+0x47 vget+0x70 cache_lookup+0x4fe
vfs_cache_lookup+0xc0 VOP_LOOKUP_APV+0x40 lookup+0x49a namei+0x53a
vn_open_cred+0x3db kern_openat+0x181 syscallenter+0x2cf syscall+0x4b
Xfast_syscall+0xe2
51731 100307 ls               -                mi_switch+0x174
sleepq_wait+0x42 __lockmgr_args+0x73b vop_stdlock+0x39
VOP_LOCK1_APV+0x46 _vn_lock+0x47 vget+0x70 cache_lookup+0x4fe
vfs_cache_lookup+0xc0 VOP_LOOKUP_APV+0x40 lookup+0x49a namei+0x53a
vn_open_cred+0x3db kern_openat+0x181 syscallenter+0x2cf syscall+0x4b
Xfast_syscall+0xe2
51736 100321 ls               -                mi_switch+0x174
sleepq_wait+0x42 __lockmgr_args+0x73b vop_stdlock+0x39
VOP_LOCK1_APV+0x46 _vn_lock+0x47 vget+0x70 cache_lookup+0x4fe
vfs_cache_lookup+0xc0 VOP_LOOKUP_APV+0x40 lookup+0x49a namei+0x53a
vn_open_cred+0x3db kern_openat+0x181 syscallenter+0x2cf syscall+0x4b
Xfast_syscall+0xe2




More information about the freebsd-fs mailing list