From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH v3 3/6] uas: make work list per-device Date: Tue, 17 Sep 2013 13:30:12 -0700 Message-ID: <20130917203012.GA1752@infradead.org> References: <1379071635-30701-1-git-send-email-kraxel@redhat.com> <1379071635-30701-4-git-send-email-kraxel@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1379071635-30701-4-git-send-email-kraxel@redhat.com> Sender: linux-kernel-owner@vger.kernel.org To: Gerd Hoffmann Cc: linux-usb@vger.kernel.org, Matthew Wilcox , Sarah Sharp , Matthew Dharm , Greg Kroah-Hartman , "open list:USB ATTACHED SCSI" , "open list:USB MASS STORAGE..." , open list List-Id: linux-scsi@vger.kernel.org On Fri, Sep 13, 2013 at 01:27:12PM +0200, Gerd Hoffmann wrote: > Simplifies locking, we'll protect the list with the device spin lock. > Also plugs races which can happen when two devices operate on the > global list. > > While being at it rename the list head from "list" to "work", preparing > for the addition of a second list. Why do you even the list? What would a ordered per-device workqueue not provide?