[openfabrics-ewg] [openib-general] OFED Status
rjwalsh at pathscale.com
Tue Oct 3 14:45:02 PDT 2006
Roland Dreier wrote:
> Robert> Well, it needs to be refcounted, as we need to create it
> Robert> on first add_one and remove it on the last remove_one. If
> Robert> I put a spinlock around it, would that suffice?
> Yes, that should be fine, although I assume you'll need to set a flag
> and then create the file outside the lock. (I guess you could also
> get fancy and use atomic_inc_return() and atomic_dec_and_test() too if
> you wanted).
> I'm still curious -- what is the problem with creating the file before
> any devices are found? Why does modprobe get stuck?
I don't really know yet. I'm trying to fix something else right now,
but I'll come back and take a look at this shortly. OFED looks like
it's going to have my current fix, which is probably OK for the moment.
I'll try get a proper fix ready for 2.6.19 in the next day or so.
More information about the ewg