14602be4cc
When we close a socket fd, it will call get path on sockets. `close(socket_fd)` -> `file_closelk(filep)` -> `file_fcntl(F_GETPATH)` It causes a heavy stack load for each socket close operation. (We have `GETPATH` for sockets to be used for `fdinfo`) But the socket fds are not intended to be used for file locks. And so do some other file types, so we may just limit the usage of flock. Signed-off-by: Zhe Weng <wengzhe@xiaomi.com> |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
fs_chstat.c | ||
fs_close.c | ||
fs_dir.c | ||
fs_dup2.c | ||
fs_dup.c | ||
fs_epoll.c | ||
fs_eventfd.c | ||
fs_fchstat.c | ||
fs_fcntl.c | ||
fs_fstat.c | ||
fs_fstatfs.c | ||
fs_fsync.c | ||
fs_ioctl.c | ||
fs_link.c | ||
fs_lock.c | ||
fs_lseek.c | ||
fs_mkdir.c | ||
fs_open.c | ||
fs_poll.c | ||
fs_pread.c | ||
fs_pseudofile.c | ||
fs_pwrite.c | ||
fs_read.c | ||
fs_readlink.c | ||
fs_rename.c | ||
fs_rmdir.c | ||
fs_select.c | ||
fs_sendfile.c | ||
fs_signalfd.c | ||
fs_stat.c | ||
fs_statfs.c | ||
fs_symlink.c | ||
fs_syncfs.c | ||
fs_timerfd.c | ||
fs_truncate.c | ||
fs_unlink.c | ||
fs_write.c | ||
Kconfig | ||
lock.h | ||
Make.defs |