Xiang Xiao 86fab49c46 fs: Fix the race condition in file_dup
NULL inode passed to files_allocate doesn't mark file struct in the
allocated state, so other threads which invovle in file allocation
(e.g. open or dup) may allocate the same file struct again.

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I53ff876eae3c7a1e311e7f671686b73a4b4ef891
2021-01-08 11:01:46 +08:00
..
2020-04-11 21:19:47 +01:00
2020-06-15 08:07:19 -06:00
2021-01-06 14:23:50 +08:00
2020-02-28 18:18:50 -06:00
2020-12-23 00:11:38 -08:00
2020-04-30 08:46:21 -06:00
2020-04-30 08:46:21 -06:00
2020-12-14 09:20:15 +01:00
2020-11-29 18:40:40 +09:00
2020-08-11 16:44:42 +09:00
2020-11-21 07:01:08 -06:00
2019-06-26 14:37:19 -06:00
2020-08-24 03:36:44 -07:00
2021-01-05 02:40:43 -06:00
2021-01-06 14:23:50 +08:00
2019-08-04 07:18:58 -06:00
2018-08-27 05:57:53 -06:00
2021-01-05 02:40:43 -06:00
2020-05-27 05:40:37 -06:00
2020-11-19 18:03:04 -08:00
2020-08-14 03:44:26 -07:00
2020-12-06 09:03:09 -06:00
2020-12-20 16:40:14 -03:00
2020-07-21 21:48:18 -07:00