nuttx/fs
Zhe Weng 14602be4cc fs/lock: Limit inode type for file locks
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>
2024-02-21 13:29:36 -03:00
..
aio fs/inode: remove all unnecessary check for filep/inode 2023-08-29 09:47:11 +08:00
binfs fs: procfs add poll support 2023-12-26 19:23:13 -08:00
cromfs fs: procfs add poll support 2023-12-26 19:23:13 -08:00
driver rpmsgblk: bind block inode to ept when create ept 2023-11-22 08:08:12 -08:00
fat fs: fat: fs_fat32: fix default return value of fat_ioctl(). 2024-02-20 04:08:26 -08:00
hostfs fs: procfs add poll support 2023-12-26 19:23:13 -08:00
inode compiler/tasking: fix compiler warning on tasking 2024-01-31 05:02:56 -08:00
littlefs littlefs/Make.defs:Add get path temp patch 2024-02-21 06:15:39 -08:00
mmap Documentation: remove all migrated READMEs 2023-10-29 21:03:54 -03:00
mount fs/mount: add FS_RPMSGFS as cause of NODFS_SUPPORT 2024-02-10 17:07:05 +08:00
mqueue poll: pollsetup should notify only one fd passd by caller 2023-11-21 09:07:17 +01:00
nfs fs: procfs add poll support 2023-12-26 19:23:13 -08:00
nxffs fs: procfs add poll support 2023-12-26 19:23:13 -08:00
partition fs: partition: fs_mbr: fix for MBR block count calculation. 2024-01-14 01:29:24 -08:00
procfs fix variable set but not used 2024-02-21 13:28:20 -03:00
romfs fs/romfs: Move rn_child/rn_count before rn_namesize 2024-01-20 09:27:50 -03:00
rpmsgfs rpmsg: make all the rpmsg services deponds on RPMSG 2024-02-18 04:09:34 -08:00
semaphore sched/semaphore: Move named semaphores to user space 2023-11-27 04:52:54 -08:00
shm fs/shmfs: Fix stat() system call for shmfs object 2024-02-02 09:12:18 -08:00
smartfs fs: procfs add poll support 2023-12-26 19:23:13 -08:00
socket build: add initial cmake build system 2023-07-08 13:50:48 +08:00
spiffs fs: procfs add poll support 2023-12-26 19:23:13 -08:00
tmpfs fs: procfs add poll support 2023-12-26 19:23:13 -08:00
unionfs fs: procfs add poll support 2023-12-26 19:23:13 -08:00
userfs fs: procfs add poll support 2023-12-26 19:23:13 -08:00
vfs fs/lock: Limit inode type for file locks 2024-02-21 13:29:36 -03:00
zipfs fs: procfs add poll support 2023-12-26 19:23:13 -08:00
CMakeLists.txt build: add initial cmake build system 2023-07-08 13:50:48 +08:00
fs_initialize.c fs_lock:Implementing file locks 2024-02-21 13:29:36 -03:00
Kconfig fs_lock:Implementing file locks 2024-02-21 13:29:36 -03:00
Makefile fs:support zipfs,can mount zipfile 2023-09-27 01:06:04 +08:00