From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Garzik Subject: Re: Full hostlock pushdown available Date: Tue, 02 Nov 2010 14:50:24 -0400 Message-ID: <4CD05D70.2070703@garzik.org> References: <20101028150508.GA2385@basil.fritz.box> <4CCD5F7F.8020808@panasas.com> <4CCE271D.7040400@garzik.org> <20101101135338.GA25817@basil.fritz.box> <4CCEE33F.5030300@garzik.org> <20101101175742.GG25817@basil.fritz.box> <4CCF0DFE.4050106@garzik.org> <20101102092111.GK25817@basil.fritz.box> <4CD03578.3050801@garzik.org> <20101102175336.GA2167@basil.fritz.box> <1288723085.27411.8.camel@haakon2.linux-iscsi.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1288723085.27411.8.camel@haakon2.linux-iscsi.org> Sender: linux-scsi-owner@vger.kernel.org To: "Nicholas A. Bellinger" , Andi Kleen Cc: Stefan Richter , Boaz Harrosh , James.Bottomley@suse.de, linux-scsi@vger.kernel.org, Linux IDE mailing list List-Id: linux-ide@vger.kernel.org A proper host-lock pushdown should be two one-line changes to each driver: 1) call DEF_SCSI_QUEUECMD_NOLCK(function name of existing queuecommand); 2) in each driver's Scsi_Host_Template, rename .queuecommand hook from XXX to XXX_unlocked Then define DEF_SCSI_QUEUECMD_NOLCK() macro in some common scsi header. Simple. Easy to review. Obviously correct. Fewest LOC changed. Jeff