Re: [BUG] mm: bdi: export BDI attributes in sysfs

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Miklos Szeredi
Date: Thursday, May 15, 2008 - 12:27 pm

> On Thu, 15 May 2008, Miklos Szeredi wrote:

Yeah, I know.


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.

I'm quite sure this is not the only place in the kernel where this
would be an issue, that's why I expect the sysfs guys to have some
sort of alternative solution, that doesn't necessarily involve adding
a new mutex.

Miklos
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [BUG] mm: bdi: export BDI attributes in sysfs, Arthur Jones, (Wed May 14, 7:40 am)
Re: [BUG] mm: bdi: export BDI attributes in sysfs, Miklos Szeredi, (Thu May 15, 11:53 am)
Re: [BUG] mm: bdi: export BDI attributes in sysfs, Linus Torvalds, (Thu May 15, 12:18 pm)
Re: [BUG] mm: bdi: export BDI attributes in sysfs, Miklos Szeredi, (Thu May 15, 12:27 pm)
Re: [BUG] mm: bdi: export BDI attributes in sysfs, Linus Torvalds, (Thu May 15, 12:54 pm)
Re: [BUG] mm: bdi: export BDI attributes in sysfs, Arthur Jones, (Thu May 15, 1:44 pm)
Re: [BUG] mm: bdi: export BDI attributes in sysfs, Arthur Jones, (Thu May 15, 3:05 pm)