lkml.org 
[lkml]   [2008]   [May]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [BUG] mm: bdi: export BDI attributes in sysfs


On Thu, 15 May 2008, Miklos Szeredi wrote:
>
> Actually nothing should need protection. The only problem AFAICS is
> that the device_create()/dev_set_drvdata() interface is racy: somebody
> can come in after the device has been created but before drvdata has
> been set, and then we are in trouble.

Well, I'm not sure that the locking should be at that level. Maybe the
locking *should* be in the driver that does this. It may need to do other
setup too, after all.

Of course, doing a device_create_drvdata() thing might be the right
solution, at least part of the time. Greg?

Linus


\
 
 \ /
  Last update: 2008-05-15 22:01    [W:0.057 / U:28.444 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site