CIFS mount is offline every x minutes/seconds

Bug #508930 reported by Jean-Louis Dupond
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: samba

Situation:

Mounting a LOCAL Win XP PC share with:
mount //LOCAL-NETWORK-PC/DATA /mnt/DATA

Then we start playing music from /mnt/DATA, everything runs fine, only every x minutes/seconds it seems to give a skip.

Pulseaudio tells me:
D: protocol-native.c: Underrun on 'Music File', 0 bytes in queue.
D: protocol-native.c: Requesting rewind due to end of underrun.

Lets enable CIFS debugging:
echo 3 > /proc/fs/cifs/cifsFYI

Then at every underrun it gives:
[48601.045432] /build/buildd/linux-2.6.31/fs/cifs/file.c: CIFS VFS: in cifs_read as Xid: 722374 with uid: 1000
[48601.045434] /build/buildd/linux-2.6.31/fs/cifs/cifssmb.c: Reading 2048 bytes on fid 49163
[48601.045437] /build/buildd/linux-2.6.31/fs/cifs/transport.c: For smb_command 46
[48601.045439] /build/buildd/linux-2.6.31/fs/cifs/transport.c: Sending smb: total_len 63
[48601.045902] /build/buildd/linux-2.6.31/fs/cifs/connect.c: rfc1002 length 0x840
[48601.045971] /build/buildd/linux-2.6.31/fs/cifs/cifssmb.c: Reading 2048 bytes on fid 49163
[48601.045983] /build/buildd/linux-2.6.31/fs/cifs/transport.c: For smb_command 46
[48601.045985] /build/buildd/linux-2.6.31/fs/cifs/transport.c: Sending smb: total_len 63
[48601.046598] /build/buildd/linux-2.6.31/fs/cifs/connect.c: rfc1002 length 0x840
[48601.046670] /build/buildd/linux-2.6.31/fs/cifs/file.c: CIFS VFS: leaving cifs_read (xid = 722374) rc = 0
[48601.046681] /build/buildd/linux-2.6.31/fs/cifs/file.c: Bytes read 4096
[48601.046684] /build/buildd/linux-2.6.31/fs/cifs/file.c: CIFS VFS: leaving cifs_readpage (xid = 722373) rc = 0
[48601.046718] /build/buildd/linux-2.6.31/fs/cifs/file.c: CIFS VFS: in cifs_readpages as Xid: 722375 with uid: 1000
[48601.046721] /build/buildd/linux-2.6.31/fs/cifs/cifssmb.c: Reading 0 bytes on fid 49163
[48601.046724] /build/buildd/linux-2.6.31/fs/cifs/transport.c: For smb_command 46
[48601.046726] /build/buildd/linux-2.6.31/fs/cifs/transport.c: Sending smb: total_len 63
[48601.047140] /build/buildd/linux-2.6.31/fs/cifs/connect.c: rfc1002 length 0x3f
[48601.047148] /build/buildd/linux-2.6.31/fs/cifs/misc.c: Null buffer passed to cifs_small_buf_release
[48601.047151] /build/buildd/linux-2.6.31/fs/cifs/file.c: No bytes read (0) at offset 65519616 . Cleaning remaining pages from readahead list
[48601.047154] /build/buildd/linux-2.6.31/fs/cifs/file.c: CIFS VFS: leaving cifs_readpages (xid = 722375) rc = 0
[48601.047166] /build/buildd/linux-2.6.31/fs/cifs/file.c: CIFS VFS: in cifs_readpage as Xid: 722376 with uid: 1000
[48601.047169] /build/buildd/linux-2.6.31/fs/cifs/file.c: readpage ffffea000029f8c8 at offset 65519616 0x3e7c000

Full output in attachment

Revision history for this message
Jean-Louis Dupond (dupondje) wrote :
tags: added: cifs samba timeout underrun
Revision history for this message
Jean-Louis Dupond (dupondje) wrote :

dmesg output

Revision history for this message
Jean-Louis Dupond (dupondje) wrote :

wireshark dump of the same hickup as the previous dmesg output.

As I can see it looks like its receiving 0byte packages from the samba server (Windows XP PC).

Chuck Short (zulcss)
affects: samba (Ubuntu) → linux (Ubuntu)
Revision history for this message
Jean-Louis Dupond (dupondje) wrote :

Using Ubuntu Karmic with proposed updates.

So kernel -18

Revision history for this message
Jean-Louis Dupond (dupondje) wrote :

This seems to be more a bug in the cifs implementation on Windows then a bug in CIFS kernel module.

If I have a cifs/samba share on Linux mounted on my computer, I don't have those skips.
It only skips when I have a Windows share mounted.

Revision history for this message
Jean-Louis Dupond (dupondje) wrote :

Somehow its working without problems now :) Bug can be closed

Changed in linux (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.