lkml.org 
[lkml]   [2010]   [Oct]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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/


\
 
 \ /
  Last update: 2010-10-13 01:11    [W:0.108 / U:0.540 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site