http://oss.sgi.com/bugzilla/show_bug.cgi?id=854
Summary: userspace process hangs waiting for XFS driver to do
xlog_grant_log_space
Product: XFS
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: major
Priority: P3
Component: XFS kernel code
AssignedTo: xfs-masters@xxxxxxxxxxx
ReportedBy: dzaninovic@xxxxxxxxxxxx
Estimated Hours: 0.0
Classification: Unclassified
I have a process that can't be killed using -9 because it is waiting for XFS
driver to open a file. xfs_check does not report any problems. This problem
is not reproducible every time.
/var/log/messages:
Oct 6 14:14:27 sles11 kernel: =======================
Oct 6 14:14:27 sles11 kernel: snap D d596a3ec 0 5129 1
Oct 6 14:14:27 sles11 kernel: ea449d70 00000086 ec0fa800 d596a3ec
c057e484 c0581100 c0581100 c0581100
Oct 6 14:14:27 sles11 kernel: ea428ed0 ea429150 c1015100 00000001
c1015100 f59b302d 000005e7 00000000
Oct 6 14:14:27 sles11 kernel: ed4843c0 ea429150 ec4efd08 00000000
00000000 00000250 ebc74040 00000202
Oct 6 14:14:27 sles11 kernel: Call Trace:
Oct 6 14:14:27 sles11 kernel: [<c03485fd>] schedule_timeout+0x14/0xc5
Oct 6 14:14:27 sles11 kernel: [<f013a35b>] xlog_grant_log_space+0xc5/0x2f8
[xfs]
Oct 6 14:14:27 sles11 kernel: [<f0144a92>] xfs_trans_reserve+0xdb/0x1c8 [xfs]
Oct 6 14:14:27 sles11 kernel: [<f0149461>] xfs_create+0x1aa/0x549 [xfs]
Oct 6 14:14:27 sles11 kernel: [<f01534c4>] xfs_vn_mknod+0x138/0x205 [xfs]
Oct 6 14:14:27 sles11 kernel: [<c0199654>] vfs_create+0x12e/0x1a2
Oct 6 14:14:27 sles11 kernel: [<c019bab2>] do_filp_open+0x1b8/0x6ee
Oct 6 14:14:27 sles11 kernel: [<c019061b>] do_sys_open+0x46/0xcc
Oct 6 14:14:27 sles11 kernel: [<c01906ef>] sys_open+0x23/0x28
Oct 6 14:14:27 sles11 kernel: [<c0104a72>] syscall_call+0x7/0xb
Oct 6 14:14:27 sles11 kernel: [<0811c2c3>] 0x811c2c3
Oct 6 14:14:27 sles11 kernel: =======================
# cat /etc/SuSE-release
SUSE Linux Enterprise Server 11 (i586)
VERSION = 11
PATCHLEVEL = 0
# uname -a
Linux sles11 2.6.27.19-5-pae #1 SMP 2009-02-28 04:40:21 +0100 i686 i686 i386
GNU/Linux
# xfs_info /lv1
meta-data=/dev/mapper/vg1-lv1 isize=256 agcount=4, agsize=6400 blks
= sectsz=512 attr=2
data = bsize=4096 blocks=25600, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0
log =internal bsize=4096 blocks=1200, version=2
= sectsz=512 sunit=0 blks, lazy-count=0
realtime =none extsz=4096 blocks=0, rtextents=0
# lvdisplay
--- Logical volume ---
LV Name /dev/vg1/lv1
VG Name vg1
LV UUID 3zraBG-cMgB-cX25-hIGD-HTXy-hjo3-D9kUMX
LV Write Access read/write
LV Status available
# open 1
LV Size 100.00 MB
Current LE 25
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
# mount | grep xfs
/dev/mapper/vg1-lv1 on /lv1 type xfs (rw)
# df -k | grep lv1
/dev/mapper/vg1-lv1 97600 4468 93132 5% /lv1
The process that hangs is doing this:
1. Creates a snapshot of the XFS file system using "/sbin/lvcreate --snapshot
--size 10M --name snapshot /dev/vg1/lv1".
2. It mounts the snapshot using "mount (device, snapshot_mount_point,
file_system_type, MS_MGC_VAL | MS_RDONLY, "nouuid");
3. Unmounts the snapshot using /bin/umount command.
4. Deletes the snapshot using "/sbin/lvremove -f /dev/vg1/snapshot"
5. Opens a file on the XFS file system.
File system is attached.
--
Configure bugmail: http://oss.sgi.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
|