Attached is a sample program (that uses the new cifs.ko IOCTL) to dump the tree id for a mount to make it easier to look at traces, wireshark, /proc/fs/cifs/Stats, /proc/fs/cifs/DebugData if you have more than one mount (would be useful to add something similar to debugging tools and/or smb-info or something new in cifs-utils).
 
e.g.

# ./get-tcon-inf /mnt2
ioctl completed. tid 0x47b3d0e2 session id: 0xf6cde60a

# cat /proc/fs/cifs/DebugData | grep "tid: 0x47b3d0e2" -C3
2) \\localhost\test Mounts: 1 DevInfo: 0x20 Attributes: 0x801007f
PathComponentMax: 255 Status: 1 type: DISK Serial Number: 0xaab31952
Share Capabilities: None Aligned, Partition Aligned, Share Flags: 0x0
tid: 0x47b3d0e2 Optimal sector size: 0x200 Maximal Access: 0x1f01ff
--
Thanks,

Steve