why lock_kernel for fput in 2.3.99-pre5?

From: ying@almaden.ibm.com
Date: Mon Apr 17 2000 - 10:50:17 EST


Hi,

I'm wondering if someone can give me some explanations on why putting
lock_kernel() around fput() in
binfmt_elf.c (and maybe somewhere else) in 2.3.99-pre5. It seems like
whatever needs to be protected are already done within
fput() function itself. I don't see why lock_kernel() is needed. Also, by
making d_count atomic, it seems like one can get rid of
lock kernel calls around all the dget()'s, if not anything else. Is this
right?

Ying

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Apr 23 2000 - 21:00:11 EST