From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755186Ab0IQHRz (ORCPT ); Fri, 17 Sep 2010 03:17:55 -0400 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 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.56,381,1280732400"; d="scan'208";a="325648664" Date: Fri, 17 Sep 2010 09:20:22 +0200 From: Andi Kleen 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 Subject: Re: [PATCH 1/8] scsi: Drop struct Scsi_Host->host_lock around SHT->queuecommand() 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 Content-Disposition: inline In-Reply-To: <1284691571.26423.50.camel@mulgrave.site> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > 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