Re: the second open(2) call to file in samba 2.0 cifs mountpoint hang

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

 



2018-03-24 17:12 GMT-07:00 Xiong Zhou <xzhou@xxxxxxxxxx>:
> Hi,
>
> Sorry for the top posting.
>
> test.sh
> https://paste.fedoraproject.org/paste/L-PsaUEQF~wagiIAabsg8Q
>
> dmesg-v2.0
> https://paste.fedoraproject.org/paste/zliVSma3mwod-JEzIe0bUQ
> tcpdump -r output v2.0
> https://paste.fedoraproject.org/paste/aePcPqkl3Rm8XwF3-4u49A
>
> dmesg-v3.0
> https://paste.fedoraproject.org/paste/E-BBmpr3bbJD4y6fPagt6g
> tcpdump -r output v3.0
> https://paste.fedoraproject.org/paste/qa-7ziaF~yOhU1u~7kxJqg
>
> Thanks,
> Xiong

Thanks. The kernel logs prove the theory that the client doesn't
process the oplock break request from the server:

[58173.188033] fs/cifs/smb2misc.c: Checking for oplock break
[58173.188035] fs/cifs/smb2misc.c: oplock level 0x1
[58173.188036] fs/cifs/smb2misc.c: No matching file for oplock break
[58173.188037] fs/cifs/connect.c: Received oplock break

that's why the 2nd program succeeds to open the file only after the
1st finishes execution (and closes its file descriptor).

Xiong, do you know if this scenario works on some older kernel version?

--
Best regards,
Pavel Shilovsky
--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux