diff options
author | Namjae Jeon <linkinjeon@kernel.org> | 2022-06-02 04:07:38 +0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2022-06-11 19:18:26 +0300 |
commit | fe0fde09e1cb83effcf8fafa372533f438d93a1a (patch) | |
tree | c7cba279afe6740bbddef5b5a360534e1a573981 /tools/perf/scripts/python/task-analyzer.py | |
parent | f2906aa863381afb0015a9eb7fefad885d4e5a56 (diff) | |
download | linux-fe0fde09e1cb83effcf8fafa372533f438d93a1a.tar.xz |
ksmbd: use SOCK_NONBLOCK type for kernel_accept()
I found that normally it is O_NONBLOCK but there are different value
for some arch.
/include/linux/net.h:
#ifndef SOCK_NONBLOCK
#define SOCK_NONBLOCK O_NONBLOCK
#endif
/arch/alpha/include/asm/socket.h:
#define SOCK_NONBLOCK 0x40000000
Use SOCK_NONBLOCK instead of O_NONBLOCK for kernel_accept().
Suggested-by: David Howells <dhowells@redhat.com>
Signed-off-by: Namjae Jeon <linkinjeon@kerne.org>
Reviewed-by: Hyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions