I'm having a problem unmounting samba shares. This doesn't happen all the time, just some of the time. Possibly how I mount/unmount is not correct?
For mounting I'm using something like:
mount -o username=myusername,password=mypassword //server/audio /mnt/audio
and for unmounting, simply:
umount /mnt/audio
From the logs:
Sep 22 10:29:49 brent klogd: BUG: Dentry f4984990{i=2,n=/} still in use (1) [unmount of cifs cifs]
Sep 22 10:29:49 brent klogd: ------------[ cut here ]------------
Sep 22 10:29:49 brent klogd: Kernel BUG at c01cff5c [verbose debug info unavailable]
Sep 22 10:29:49 brent klogd: invalid opcode: 0000 [#1] PREEMPT SMP
Sep 22 10:29:49 brent klogd: last sysfs file: /sys/devices/platform/coretemp.1/temp1_label
Sep 22 10:29:49 brent klogd: Modules linked in: iptable_filter ip_tables x_tables nls_iso8859_1 cifs snd_usb_audio snd_usb_lib snd_rawmidi vmnet vmblock vsock vmci vmmon nfsd lockd nfs_acl auth_rpcgss sunrpc exportfs af_packet ipv6 snd_hda_codec_idt snd_hda_intel snd_hda_codec snd_hwdep snd_seq_dummy snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device snd_pcm_oss snd_pcm snd_timer iTCO_wdt iTCO_vendor_support snd_mixer_oss snd e1000e soundcore snd_page_alloc pcspkr sr_mod sg serio_raw i2c_i801 heci cdrom coretemp binfmt_misc nvidia(P) i2c_core cpufreq_ondemand cpufreq_conservative cpufreq_powersave acpi_cpufreq freq_table ohci1394 sbp2 raw1394 ieee1394 fuse dm_mod wacom ppdev rtc_cmos parport_pc parport joydev evdev processor thermal button ide_generic ide_core pata_marvell ata_piix ahci libata sd_mod scsi_mod crc_t10dif ext3 jbd uhci_hcd ohci_hcd ehci_hcd usbhid hid usbcore
Sep 22 10:29:49 brent klogd:
Sep 22 10:29:49 brent klogd: Pid: 32449, comm: umount.cifs Tainted: P (2.6.32.11-pclos2.bfs #1)
Sep 22 10:29:49 brent klogd: EIP: 0060:[<c01cff5c>] EFLAGS: 00010246 CPU: 1
Sep 22 10:29:49 brent klogd: EIP is at shrink_dcache_for_umount_subtree+0x108/0x1bf
Sep 22 10:29:49 brent klogd: EAX: 0000004c EBX: f4984990 ECX: c0605be0 EDX: 00000000
Sep 22 10:29:49 brent klogd: ESI: 00000001 EDI: f88e62ed EBP: f3dadf20 ESP: f3dadef4
Sep 22 10:29:49 brent klogd: DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
Sep 22 10:29:49 brent klogd: Process umount.cifs (pid: 32449, ti=f3dac000 task=f60a43e0 task.ti=f3dac000)
Sep 22 10:29:49 brent klogd: Stack:
Sep 22 10:29:49 brent klogd: c04b4258 f4984990 00000002 f49849ec 00000001 f88e62ed f67c1b64 f49849ec
Sep 22 10:29:49 brent klogd: <0> f67c1a00 f88e2f84 f67c1a00 f3dadf2c c01d0045 f67c1a00 f3dadf3c c01c0f44
Sep 22 10:29:49 brent klogd: <0> 00000018 f88f2478 f3dadf48 c01c103a f67c1a00 f3dadf58 c01c15ed f677fb00
Sep 22 10:29:49 brent klogd: Call Trace:
Sep 22 10:29:49 brent klogd: [<c01d0045>] ? shrink_dcache_for_umount+0x32/0x3c
Sep 22 10:29:49 brent klogd: [<c01c0f44>] ? generic_shutdown_super+0x1a/0xc9
Sep 22 10:29:49 brent klogd: [<c01c103a>] ? kill_anon_super+0x11/0x48
Sep 22 10:29:49 brent klogd: [<c01c15ed>] ? deactivate_super+0x47/0x5a
Sep 22 10:29:49 brent klogd: [<c01d4e76>] ? mntput_no_expire+0x91/0xc0
Sep 22 10:29:49 brent klogd: [<c01d535c>] ? sys_umount+0x26f/0x293
Sep 22 10:29:49 brent klogd: [<c01034d3>] ? sysenter_do_call+0x12/0x28
Sep 22 10:29:49 brent klogd: Code: 42 1c 8b 38 31 c0 89 4d f0 8b 4b 10 85 c9 74 03 8b 41 20 81 c2 64 01 00 00 52 57 56 ff 75 f0 50 53 68 58 42 4b c0 e8 7f c2 1c 00 <0f> 0b 83 c4 1c eb fe 8b 73 1c 39 f3 75 04 31 f6 eb 03 f0 ff 0e
Sep 22 10:29:49 brent klogd: EIP: [<c01cff5c>] shrink_dcache_for_umount_subtree+0x108/0x1bf SS:ESP 0068:f3dadef4
Sep 22 10:29:49 brent klogd: ---[ end trace 2e45bb78cd1b9eb5 ]---