From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760068Ab0JIVaY (ORCPT ); Sat, 9 Oct 2010 17:30:24 -0400 Received: from kroah.org ([198.145.64.141]:56574 "EHLO coco.kroah.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757185Ab0JIVaX (ORCPT ); Sat, 9 Oct 2010 17:30:23 -0400 Date: Sat, 9 Oct 2010 14:20:47 -0700 From: Greg KH To: Vladislav Bolkhovitin Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, scst-devel , James Bottomley , Andrew Morton , FUJITA Tomonori , Mike Christie , Vu Pham , Bart Van Assche , James Smart , Joe Eykholt , Andy Yan , Chetan Loke , Dmitry Torokhov , Hannes Reinecke , Richard Sharpe , Daniel Henrique Debonzi Subject: Re: [PATCH 8/19]: SCST SYSFS interface implementation Message-ID: <20101009212047.GB27180@kroah.com> References: <4CA653F0.1010008@vlnb.net> <4CA656AD.8020408@vlnb.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4CA656AD.8020408@vlnb.net> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Oct 02, 2010 at 01:46:21AM +0400, Vladislav Bolkhovitin wrote: > This patch contains SYSFS interface implementation. Nice, but you forgot to document it. All sysfs changes need to be documented in Documentation/ABI/ Please add a file to this patch that does so. > +static void scst_tgtt_release(struct kobject *kobj) > +{ > + struct scst_tgt_template *tgtt; > + > + tgtt = container_of(kobj, struct scst_tgt_template, tgtt_kobj); > + complete_all(&tgtt->tgtt_kobj_release_cmpl); > + return; Don't you also need to free the memory of your kobject here? > +static void scst_tgt_release(struct kobject *kobj) > +{ > + struct scst_tgt *tgt; > + > + tgt = container_of(kobj, struct scst_tgt, tgt_kobj); > + complete_all(&tgt->tgt_kobj_release_cmpl); > + return; Same here, no kfree? > +static void scst_acg_release(struct kobject *kobj) > +{ > + struct scst_acg *acg; > + > + acg = container_of(kobj, struct scst_acg, acg_kobj); > + complete_all(&acg->acg_kobj_release_cmpl); And here. thanks, greg k-h