X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Ffcntl.c;h=863b46e0d78a6594371a744358104faae657c307;hb=e4543eddfd3bf3e0d625841377fa695a519edfd4;hp=d2f3ed8acd932e92a21844fd6df19d7ad3a10b36;hpb=ab2af1f5005069321c5d130f09cce577b03f43ef;p=linux-2.6 diff --git a/fs/fcntl.c b/fs/fcntl.c index d2f3ed8acd..863b46e0d7 100644 --- a/fs/fcntl.c +++ b/fs/fcntl.c @@ -40,10 +40,10 @@ static inline int get_close_on_exec(unsigned int fd) struct files_struct *files = current->files; struct fdtable *fdt; int res; - spin_lock(&files->file_lock); + rcu_read_lock(); fdt = files_fdtable(files); res = FD_ISSET(fd, fdt->close_on_exec); - spin_unlock(&files->file_lock); + rcu_read_unlock(); return res; }