Re: regression in CIFS(?) between 4.17.14 and 4.18.0

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

 



ср, 12 сент. 2018 г. в 1:28, Dr. Bernd Feige
<bernd.feige@xxxxxxxxxxxxxxxxxxxxx>:
>
> Hi Pavel,
>
> thanks for your response!
>
> > Could you provide the dmesg output when the issue appears? The
> > instructions how to turn on debug logs can be found here:
> >
> > https://wiki.samba.org/index.php/LinuxCIFS_troubleshooting
>
> After "echo 7 > /proc/fs/cifs/cifsFYI", when the hang occurs, I get in
> dmesg:
>
> [  187.112213] Status code returned 0xc0000257 STATUS_PATH_NOT_COVERED
> [  187.155431] Status code returned 0xc0000010 STATUS_INVALID_DEVICE_REQUEST
> [  187.157380] Status code returned 0xc0000225 STATUS_NOT_FOUND
> [  188.071010] Status code returned 0x80000006 STATUS_NO_MORE_FILES
> [  189.953596] Status code returned 0xc0000257 STATUS_PATH_NOT_COVERED
>
> This time one directory listing (using the same notorious dir with
> 67365 files) worked, the second try hung.
> Although I did see "ls -l" hang as well, I seem to be much more
> successful provoking the hang by using python3's os.listdir().
>
> Starting a second os.listdir() on that directory (after several "ls"
> and "ls -l" returned fine), the additional dmesg lines are the
> following (and now processors spinning at 100% load on the two python
> processes):
>
> [  427.286617] Status code returned 0xc0000257 STATUS_PATH_NOT_COVERED
> [  427.287673] Status code returned 0xc0000010 STATUS_INVALID_DEVICE_REQUEST
> [  427.289656] Status code returned 0xc0000225 STATUS_NOT_FOUND
> [  428.126485] Status code returned 0x80000006 STATUS_NO_MORE_FILES
> [  461.590599] Status code returned 0xc0000257 STATUS_PATH_NOT_COVERED
> [  462.316200] Status code returned 0x80000006 STATUS_NO_MORE_FILES
> [  463.334653] Status code returned 0xc0000257 STATUS_PATH_NOT_COVERED
> [  464.086961] Status code returned 0x80000006 STATUS_NO_MORE_FILES
> [  464.870562] Status code returned 0xc0000257 STATUS_PATH_NOT_COVERED
> [  465.613235] Status code returned 0x80000006 STATUS_NO_MORE_FILES
> [  478.262724] Status code returned 0xc0000257 STATUS_PATH_NOT_COVERED
> [  478.999349] Status code returned 0x80000006 STATUS_NO_MORE_FILES
> [  479.702844] Status code returned 0xc0000257 STATUS_PATH_NOT_COVERED
> [  480.461083] Status code returned 0x80000006 STATUS_NO_MORE_FILES
> [  480.982617] Status code returned 0xc0000257 STATUS_PATH_NOT_COVERED
> [  481.716719] Status code returned 0x80000006 STATUS_NO_MORE_FILES
> [  486.486589] Status code returned 0xc0000257 STATUS_PATH_NOT_COVERED
> [  487.253238] Status code returned 0x80000006 STATUS_NO_MORE_FILES
> [  490.422517] Status code returned 0xc0000257 STATUS_PATH_NOT_COVERED
> [  491.183014] Status code returned 0x80000006 STATUS_NO_MORE_FILES
> [  518.150858] Status code returned 0xc0000257 STATUS_PATH_NOT_COVERED
> [  518.903201] Status code returned 0x80000006 STATUS_NO_MORE_FILES
> [  520.198853] Status code returned 0xc0000257 STATUS_PATH_NOT_COVERED
> [  520.941141] Status code returned 0x80000006 STATUS_NO_MORE_FILES
> [  521.830787] Status code returned 0xc0000257 STATUS_PATH_NOT_COVERED
> [  522.592173] Status code returned 0x80000006 STATUS_NO_MORE_FILES
> [  584.154288] Status code returned 0xc0000257 STATUS_PATH_NOT_COVERED
>
> And after another try "ls -al" now hangs and we have:
>
> [  843.287238] Status code returned 0xc0000257 STATUS_PATH_NOT_COVERED
> [  843.288227] Status code returned 0xc0000010 STATUS_INVALID_DEVICE_REQUEST
> [  843.290266] Status code returned 0xc0000225 STATUS_NOT_FOUND
> [  843.296024] Status code returned 0xc0000010 STATUS_INVALID_DEVICE_REQUEST
> [  843.297751] Status code returned 0xc0000225 STATUS_NOT_FOUND
> [  843.307219] Status code returned 0xc0000010 STATUS_INVALID_DEVICE_REQUEST
> [  843.309061] Status code returned 0xc0000225 STATUS_NOT_FOUND
> [  843.315444] Status code returned 0xc0000010 STATUS_INVALID_DEVICE_REQUEST
> [  843.317053] Status code returned 0xc0000225 STATUS_NOT_FOUND
> [  843.321773] Status code returned 0xc0000010 STATUS_INVALID_DEVICE_REQUEST
> [  843.323557] Status code returned 0xc0000225 STATUS_NOT_FOUND
> [  843.329932] Status code returned 0xc0000010 STATUS_INVALID_DEVICE_REQUEST
> [  843.331642] Status code returned 0xc0000225 STATUS_NOT_FOUND
> [  843.341069] Status code returned 0xc0000010 STATUS_INVALID_DEVICE_REQUEST
> [  843.342778] Status code returned 0xc0000225 STATUS_NOT_FOUND
> [  843.348103] Status code returned 0xc0000010 STATUS_INVALID_DEVICE_REQUEST
> [  843.350018] Status code returned 0xc0000225 STATUS_NOT_FOUND
> [  843.356611] Status code returned 0xc0000010 STATUS_INVALID_DEVICE_REQUEST
> [  843.358367] Status code returned 0xc0000225 STATUS_NOT_FOUND
> [  843.364000] Status code returned 0xc0000010 STATUS_INVALID_DEVICE_REQUEST
> [  843.365836] Status code returned 0xc0000225 STATUS_NOT_FOUND
> [  843.370308] Status code returned 0xc0000010 STATUS_INVALID_DEVICE_REQUEST
> [  843.372040] Status code returned 0xc0000225 STATUS_NOT_FOUND
> [  843.380763] Status code returned 0xc0000010 STATUS_INVALID_DEVICE_REQUEST
> [  843.382480] Status code returned 0xc0000225 STATUS_NOT_FOUND
> [  843.384671] Status code returned 0xc0000010 STATUS_INVALID_DEVICE_REQUEST
> [  843.404123] Status code returned 0xc0000225 STATUS_NOT_FOUND
> [  844.289949] Status code returned 0xc0000257 STATUS_PATH_NOT_COVERED
> [  844.453141] Status code returned 0x80000006 STATUS_NO_MORE_FILES
>
> Here, one os.listdir() did finish (showing no errors in python or the
> calling terminal), still 2 processors busy with one python and one ls
> process...
>
> Best regards,
> Bernd

Hi Bernd,

It seems that you didn't do:

# echo 'module cifs +p' > /sys/kernel/debug/dynamic_debug/control
# echo 'file fs/cifs/* +p' > /sys/kernel/debug/dynamic_debug/control

which is essential to get debug logs.The logs you obtained show only
error codes which is not very informative. Please repeat the repro
with the debug logs enabled.

--
Best regards,
Pavel Shilovsky




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

  Powered by Linux