From: Andi Kleen Subject: Re: [PATCH 1/8] scsi: Drop struct Scsi_Host->host_lock around SHT->queuecommand() Date: Fri, 17 Sep 2010 09:20:22 +0200 Message-ID: <20100917072022.GB2644@gargoyle.ger.corp.intel.com> References: <1284676529-10756-1-git-send-email-nab@linux-iscsi.org> <1284691571.26423.50.camel@mulgrave.site> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mga14.intel.com ([143.182.124.37]:65064 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751603Ab0IQHRx (ORCPT ); Fri, 17 Sep 2010 03:17:53 -0400 Content-Disposition: inline In-Reply-To: <1284691571.26423.50.camel@mulgrave.site> Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: James Bottomley Cc: "Nicholas A. Bellinger" , linux-scsi , linux-kernel , Vasu Dev , Tim Chen , Matthew Wilcox , Mike Christie , James Smart , Andrew Vasquez , FUJITA Tomonori , Hannes Reinecke , Joe Eykholt , Christoph Hellwig > So at least from where I stand, my object is to reduce the number of > times we take and release the lock, which this doesn't do. As I said > before: we need to figure out the rest, which likely includes an atomic > for the serial number (which is almost unused). I think the check If it's unused it should be removed, make optional. Atomics are a scalability problem too and not much cheaper than spinlocks. -Andi