summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/file.h2
-rw-r--r--include/linux/init_task.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/file.h b/include/linux/file.h
index 0bfe318d873b..6fbd27f755d5 100644
--- a/include/linux/file.h
+++ b/include/linux/file.h
@@ -21,7 +21,7 @@
*/
struct files_struct {
atomic_t count;
- rwlock_t file_lock; /* Protects all the below members. Nests inside tsk->alloc_lock */
+ spinlock_t file_lock; /* Protects all the below members. Nests inside tsk->alloc_lock */
int max_fds;
int max_fdset;
int next_fd;
diff --git a/include/linux/init_task.h b/include/linux/init_task.h
index 6e749b6c5a7f..96a5f926300e 100644
--- a/include/linux/init_task.h
+++ b/include/linux/init_task.h
@@ -6,7 +6,7 @@
#define INIT_FILES \
{ \
.count = ATOMIC_INIT(1), \
- .file_lock = RW_LOCK_UNLOCKED, \
+ .file_lock = SPIN_LOCK_UNLOCKED, \
.max_fds = NR_OPEN_DEFAULT, \
.max_fdset = __FD_SETSIZE, \
.next_fd = 0, \