Re: [PATCH][ATM] use rtnl_{lock,unlock} during device operations

David S. Miller (davem@redhat.com)
Fri, 06 Jun 2003 08:08:27 -0700 (PDT)


From: chas williams <chas@cmf.nrl.navy.mil>
Date: Fri, 06 Jun 2003 11:05:37 -0400

so should i hold rtnl across add/remove atm addresses on atm dev's?
(but iw ouldnt hold rtnl across people just reading the list of
atm addresses right?)

Correct.

i am planning (or have done) to move all the vcc's onto a global
list (ala many of the other protocol stacks). this makes the code
for proc (and others) much cleaner since you just grab a read lock
on the global vcc sklist instead of locking and interating each atm
device. further, this will let atm interrupt handlers block a race
with vcc close/removal. is this a bad plan?

Sounds good.
-
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/