cifsd-team / ksmbd

ksmbd kernel server(SMB/CIFS server)
152 stars 23 forks source link

cifsd: open file with O_NONBLOCK flags by default #458

Closed namjaejeon closed 3 years ago

namjaejeon commented 3 years ago

If you use the ls command in directory containing the pipe file through the cifs client, There is an issue that is blocked in dentry_open(). The file open is blocked if openning with O_RDONLY. cifs client calls smb2 open after query dirty for the smb2 get info, and blocking in smb2_open occurs. There is no need to block from smb2 open on the server. blocking for pipe file will have to be done by the client.

Signed-off-by: Namjae Jeon namjae.jeon@samsung.com