Re: [PATCH][ATM] use rtnl_{lock,unlock} during device operations (take 2)

From: Roman Zippel (
Date: Mon Jun 09 2003 - 17:59:21 EST


On Sun, 8 Jun 2003, David S. Miller wrote:

> The transition is half complete. Eventually even that
> "wait for refcount to hit zero" part will go away, and
> also we will add the logic to mark the device at "dead"
> and then teach all the sysfs/procfs routines to error out
> if they see the device they are examining is in this state.

This would be basically the same as moving the try_module_get/module_put
calls from the open/close to the read/write functions.
You still need to synchronize with already running functions and if your
that far it's probably easier to simply replace the ops pointer to get rid
of the dead test.
This still leaves you with a very limited control of the module unloading

bye, Roman

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Sun Jun 15 2003 - 22:00:22 EST