Re: [PATCH] firewire: reread config ROM when device reset the bus

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Stefan Richter
Date: Monday, March 3, 2008 - 10:58 am

Kristian Høgsberg wrote:

This may be more of a concern to anybody who wanted to change the driver 
core internals and might be unsure what to do with those three dev->sem 
taking sites which I added; not so much a concern from the firewire 
driver maintenance POV.

OTOH, contention for idr_rwsem is low and there can be multiple readers 
of course.  The most time consuming thing that could happen would be 
waiting for GFP_KERNEL allocations of new IDR tree leaves.  And maybe 
having the dev->sem in a cacheline but idr_rwsem not is probably not a 
concern for the stuff that the writer and the two readers of the ROM 
cache do.

Ah, wait, there is a 3rd reader: sbp2_probe's sbp2_scan_unit_dir.  So, 
using dev->sem is actually the nicest way for now.
-- 
Stefan Richter
-=====-==--- --== ---==
http://arcgraph.de/sr/
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] firewire: reread config ROM when device reset ..., Kristian Høgsberg, (Mon Mar 3, 9:17 am)
Re: [PATCH] firewire: reread config ROM when device reset ..., Kristian Høgsberg, (Mon Mar 3, 10:28 am)
Re: [PATCH] firewire: reread config ROM when device reset ..., Stefan Richter, (Mon Mar 3, 10:58 am)