Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751787AbZLCIEh (ORCPT ); Thu, 3 Dec 2009 03:04:37 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751581AbZLCIEg (ORCPT ); Thu, 3 Dec 2009 03:04:36 -0500 Received: from mail-yw0-f182.google.com ([209.85.211.182]:52336 "EHLO mail-yw0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751061AbZLCIEf (ORCPT ); Thu, 3 Dec 2009 03:04:35 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=D0jxEFTNNZMSimZP3Fkkb+5zPq4BQezx4i9J+0lIZ7LpC3+iVJR+0eTGVLBggYRcMU Lht3ZxNiDiwX+uRjnIGB9NGgBnBRGS+AIy48/CbOF7sBXITMTWFg/6jVXpLu+xopuVFy 8Gqz+B/MgUggUBCPyyGBss6FM4LAazOKVn7PU= Message-ID: <4B177118.5020501@garzik.org> Date: Thu, 03 Dec 2009 03:04:40 -0500 From: Jeff Garzik User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20091014 Fedora/3.0-2.8.b4.fc11 Thunderbird/3.0b4 MIME-Version: 1.0 To: Bartlomiej Zolnierkiewicz CC: linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 86/86] libata: add private driver field to struct ata_device References: <20091125170218.5446.13513.sendpatchset@localhost> <20091125171248.5446.22482.sendpatchset@localhost> In-Reply-To: <20091125171248.5446.22482.sendpatchset@localhost> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1443 Lines: 37 On 11/25/2009 12:12 PM, Bartlomiej Zolnierkiewicz wrote: > From: Bartlomiej Zolnierkiewicz > Subject: [PATCH] libata: add private driver field to struct ata_device > > This brings struct ata_device in-line with struct ata_{port,host}. > > Signed-off-by: Bartlomiej Zolnierkiewicz > --- > include/linux/libata.h | 1 + > 1 file changed, 1 insertion(+) > > Index: b/include/linux/libata.h > =================================================================== > --- a/include/linux/libata.h > +++ b/include/linux/libata.h > @@ -585,6 +585,7 @@ struct ata_device { > unsigned int horkage; /* List of broken features */ > unsigned long flags; /* ATA_DFLAG_xxx */ > struct scsi_device *sdev; /* attached SCSI device */ > + void *private_data; > #ifdef CONFIG_ATA_ACPI > acpi_handle acpi_handle; > union acpi_object *gtf_cache; I'm fine with this, and would like to merge this sooner rather than later. However, BIG FAT WARNING: you must take special care to be sure you don't leak as devices appear and disappear, etc. IOW, watch your object lifetimes carefully. Object lifetime was the reason this was not added until now. -- 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/