Re: question about nfs_execute_read: why do we need to do lock_kernel?



Xin Zhao wrote:

Thanks for your reply. So the only reason is for rpc auditing? If so,
why not just lock the code that updating the audit information? Now
the code is:

lock_kernel()
rpc_execute()
unlock_kernel().

That means the kernel will be blocked when rpc is executed, which
could take long time. Even if rpc_execute() won't take very long, this
implementation still looks inefficient. That's why I am a little
confused on this point.

Any further thought?


I would suggest looking at the semantics of the BKL. They don't end up
implying what you are suggesting. The kernel isn't really locked for
the duration of the over the wire RPC.

Thanx...

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



Relevant Pages

  • Dynamic kernel updates using DynAMOS
    ... supports Linux and could be of help in kernel development and high ... It is an on-the-fly kernel updating system that enables commodity ... Dynamic updates we've so far been able to carry out with DynAMOS ... Extending the Linux 2.2 kernel process scheduler to support ...
    (Linux-Kernel)
  • Dynamic kernel updates using DynAMOS
    ... supports Linux and could be of help in kernel development and high ... It is an on-the-fly kernel updating system that enables commodity ... Dynamic updates we've so far been able to carry out with DynAMOS ... Extending the Linux 2.2 kernel process scheduler to support ...
    (freebsd-hackers)
  • Re: kernel build procedure for 5.4->6.0Beta
    ... : kernel build procedure. ... UPDATING, of course, has precedence, as stated in the ... handbook, but I am curious what difference ... make kernel is the same thing as make buildkernel installkernel. ...
    (freebsd-current)
  • HEADS-UP: SADB_X_AALG_RIPEMD160HMAC was changed
    ... If you are using IPsec stuff, it breaks binary compatibility. ... When updating your kernel, you need to update libipsec, setkey, racoon ...
    (freebsd-current)
  • Re: Using up2date to update kernel remotely
    ... >>hosting facility and requires updating. ... >>What are people's experiences of updating the kernel remotely? ... > I haven't had any problems so far with up2date. ... The new kernel will only ...
    (alt.os.linux.redhat)