From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jun'ichi Nomura" Subject: Re: [PATCH] dm-path-selector: fix refcount corruption Date: Fri, 06 Feb 2009 10:04:08 +0900 Message-ID: <498B8C88.4010201@ce.jp.nec.com> References: <498AE0B5.5050709@ce.jp.nec.com> Reply-To: device-mapper development Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: device-mapper development List-Id: dm-devel.ids Hi Jonathan, Jonathan Brassow wrote: > On Feb 5, 2009, at 6:51 AM, Jun'ichi Nomura wrote: > >> @@ -136,11 +126,6 @@ int dm_unregister_path_selector(struct p >> return -EINVAL; >> } >> >> - if (psi->use) { >> - up_write(&_ps_lock); >> - return -ETXTBSY; >> - } >> - >> list_del(&psi->list); > > > We still need this in some form, don't we? Like 'if (module_refcount...'? I don't think so. dm_unregister_path_selector() is called from module_exit function. So it is called when the refcount is 0. Thanks, -- Jun'ichi Nomura, NEC Corporation