Messages in this thread | | | Date | Wed, 13 Oct 2010 01:09:25 +0200 | From | Stefan Richter <> | Subject | Re: [PATCH unfinished update] firewire: sbp2: parallelize login/inquiry, reconnect, and shutdown |
| |
Stefan Richter wrote: >> Maybe I need ordered per-target workqueues. > > No, I actually need per-node ordering. This device, like my other one > and apparently most ones on the market actually keep their SCSI logical > units in separate FireWire units. Currently firewire-sbp2 is not aware > that fw_unit instances reside on the same node. > > This is going to be tougher than I hoped. Maybe I need a driver-global > Inquiry mutex. Or move the __scsi_add_device() out of sbp2_login() into > another work which is scheduled to a "single-threaded" workqueue.
More extensive change but probably with simpler end result: Let sbp2_probe and sbp2_update perform login/scsi_add_device/reconnect directly. sbp2_probe and sbp2_update are serialized per node, but (since 2.6.36 with cmwq) parallelized across nodes. -- Stefan Richter -=====-==-=- =-=- -==-= http://arcgraph.de/sr/
| |