|
@@ -31,7 +31,7 @@ struct embedded_fd_set {
|
|
|
|
|
|
struct fdtable {
|
|
|
unsigned int max_fds;
|
|
|
- struct file ** fd; /* current fd array */
|
|
|
+ struct file __rcu **fd; /* current fd array */
|
|
|
fd_set *close_on_exec;
|
|
|
fd_set *open_fds;
|
|
|
struct rcu_head rcu;
|
|
@@ -46,7 +46,7 @@ struct files_struct {
|
|
|
* read mostly part
|
|
|
*/
|
|
|
atomic_t count;
|
|
|
- struct fdtable *fdt;
|
|
|
+ struct fdtable __rcu *fdt;
|
|
|
struct fdtable fdtab;
|
|
|
/*
|
|
|
* written part on a separate cache line in SMP
|
|
@@ -55,7 +55,7 @@ struct files_struct {
|
|
|
int next_fd;
|
|
|
struct embedded_fd_set close_on_exec_init;
|
|
|
struct embedded_fd_set open_fds_init;
|
|
|
- struct file * fd_array[NR_OPEN_DEFAULT];
|
|
|
+ struct file __rcu * fd_array[NR_OPEN_DEFAULT];
|
|
|
};
|
|
|
|
|
|
#define rcu_dereference_check_fdtable(files, fdtfd) \
|