[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#695492: CIFS mount hangs after not using it for a while



Seems like the same problem here.
Linux guest (VirtualBox) trying to access a Windows share (on host, Windows 7).

# cat /proc/10254/stack
[<c121e547>] wait_for_response.isra.5+0x97/0xf0
[<c121f41b>] SendReceive+0xeb/0x240
[<c1202ff5>] CIFSSMBNegotiate+0x155/0x6e0
[<c1224945>] cifs_negotiate+0x15/0x60
[<c120e98c>] cifs_negotiate_protocol+0x5c/0xb0
[<c1202c0c>] cifs_reconnect_tcon+0x14c/0x270
[<c1202d4f>] smb_init+0x1f/0x80
[<c12070bc>] CIFSSMBQPathInfo+0x3c/0x220
[<c12248de>] cifs_query_path_info+0x3e/0x90
[<c1219524>] cifs_get_inode_info+0x1d4/0x4f0
[<c121af85>] cifs_revalidate_dentry_attr+0xa5/0x1a0
[<c121b12c>] cifs_getattr+0x4c/0x120
[<c1109daf>] vfs_getattr+0x3f/0x70
[<c1109e34>] vfs_fstatat+0x54/0x90
[<c1109eab>] vfs_stat+0x1b/0x20
[<c110a211>] sys_stat64+0x11/0x30
[<c170b4fa>] sysenter_do_call+0x12/0x22
[<ffffffff>] 0xffffffff

=> ls on previously working share.

Kernel log:
[ 1099.860691] CIFS VFS: Server <server> has not responded in 120 seconds. Reconnecting...

# cat /proc/fs/cifs/DebugData
Display Internal CIFS Data Structures for Debugging
---------------------------------------------------
CIFS Version 2.0
Features:
Active VFS Requests: 1
Servers:
1) Name: 10.0.2.2 Domain: <domain> Uses: 1 OS: Windows 7 Professional 7601 Service Pack 1
        NOS: Windows 7 Professional 6.1 Capability: 0x1e3fc
        SMB session status: 1   TCP status: 4
        Local Users To Server: 1 SecMode: 0x3 Req On Wire: 1
        Shares:
1) \\<server>\cc_latest$ Mounts: 1 Type: NTFS DevInfo: 0x20 Attributes: 0xc700ff
PathComponentMax: 255 Status: 0x1 type: DISK    DISCONNECTED

        MIDs:
        State: 2 com: 114 pid: 10254 cbdata: de598500 mid 8

# mount
//<server>/cc_latest$ on /home/flo/dev/cc_latest type cifs (rw,nosuid,nodev,relatime,vers=1.0,sec=ntlm,cache=none,unc=\\<server>\cc_latest$,username=flo,uid=1000,forceuid,gid=1000,forcegid,addr=10.0.2.2,file_mode=0755,dir_mode=0755,nounix,rsize=61440,wsize=65536,actimeo=1)

Share is connected using this entry from /etc/fstab:
//<server>/cc_latest$ /home/flo/dev/cc_latest cifs user,noauto,username=flo,nounix,noserverino,sec=ntlm,cache=none 0 0
(cache=none seems to be irrelevant for the issue to reproduce)

Linux kernel is v3.8 from experimental running on wheezy.
# dpkg -p linux-source-3.8
Package: linux-source-3.8
Priority: optional
Section: kernel
Installed-Size: 81955
Maintainer: Debian Kernel Team <debian-kernel@lists.debian.org>
Architecture: all
Multi-Arch: foreign
Source: linux
Version: 3.8.5-1~experimental.1

# lsmod
Module                  Size  Used by
<none>

Same issue occurs for the stable kernel from wheezy:
# dpkg -p linux-image-3.2.0-4-686-pae
Package: linux-image-3.2.0-4-686-pae
Priority: optional
Section: kernel
Installed-Size: 80201
Maintainer: Debian Kernel Team <debian-kernel@lists.debian.org>
Architecture: i386
Source: linux
Version: 3.2.41-2

I can easily reproduce the problem by not making use of the share for some time.
Please let me know if you need other info.
(BTW, the problem didn't occur for linux-2.6 on squeeze).

   Florian


Reply to: