I changed aio_pending_size to a large value, such as 512 or 1024. When the cifs client create 64 threads to read different files, the read operation will get stuck, and after about 1 minute, the client will create a new connection. The pid of smbd on server get changed.
What exact Samba version do you use, and what client? Samba used to have some credit handling problem with Windows 7 clients, this might be a symptom of that.
(In reply to Volker Lendecke from comment #1) Hi, I have tried samba4.1.8 samba4.1.19 and samba4.2.3, and the problem exists all the same. The client is windows server 2008 SP1.
(In reply to Volker Lendecke from comment #1) I found that my problem is similar to bug-10804 comment-24.