[PATCH] remove useless MOD_{INC,DEC}_USE_COUNT from sunrpc

From: Trond Myklebust (trond.myklebust@fys.uio.no)
Date: Sun May 04 2003 - 12:37:18 EST


>>>>> " " == Christoph Hellwig <hch@lst.de> writes:

> - rpciod() (the ernel thread) also bumps the refcount when starting
> and decrements it when exiting. but as a different module
> must initiate this using rpciod_up/rpciod_down this is again
> not needed. (except when a module does rpciod_up without a
> matching rpciod_down - but that a big bug anyway and we
> don't need to partially handle that using module refcounts).

There's another case which you appear to be ignoring: rpciod_down() is
interruptible and does not have to wait on the rpciod() thread to
complete.

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



This archive was generated by hypermail 2b29 : Wed May 07 2003 - 22:00:20 EST