From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id DBEBA82D for ; Tue, 4 Aug 2015 10:49:50 +0000 (UTC) Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 7644910A for ; Tue, 4 Aug 2015 10:49:50 +0000 (UTC) Date: Tue, 04 Aug 2015 12:49:47 +0200 Message-ID: From: Takashi Iwai To: Russell King - ARM Linux In-Reply-To: <20150802143025.GF7557@n2100.arm.linux.org.uk> References: <2111196.TG1k3f53YQ@avalon> <1832413.9MBGoll9RW@avalon> <8475257.M7ZLAf3KQe@avalon> <20150801151839.GA9480@mtj.duckdns.org> <55BD68DE.5060903@roeck-us.net> <20150802143025.GF7557@n2100.arm.linux.org.uk> MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Cc: Tejun Heo , Shuah Khan , ksummit-discuss@lists.linuxfoundation.org Subject: Re: [Ksummit-discuss] [TECH TOPIC] Fix devm_kzalloc, its users, or both List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Sun, 02 Aug 2015 16:30:25 +0200, Russell King - ARM Linux wrote: > > We have lots of drivers trying to solve this issue of private data in > their own ways. Some use a kref, others use other methods. Isn't it > about time we had some kind of unification here to ease this burden on > driver authors? > > We can have an argument about whether kernel driver authors should know > about the fine details of lifetime issues which many kernel subsystem > maintainers themselves struggle to grasp, and whether they should therefore > be coding for the kernel at all, or whether we should be making it easy > for driver authors to get things right. > > Personally, I'd prefer the latter - the simpler the interfaces, the easier > it is for everyone to get stuff correct, and the less obscure bugs there > will be. I bet majority of maintainers would love the latter, too. After all, the simplicity is the reason why devm_* got more attraction. thanks, Takashi