Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752966AbbGWJrF (ORCPT ); Thu, 23 Jul 2015 05:47:05 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:60966 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752436AbbGWJqy (ORCPT ); Thu, 23 Jul 2015 05:46:54 -0400 Date: Thu, 23 Jul 2015 02:46:51 -0700 From: Christoph Hellwig To: Spencer Baugh Cc: "supporter:QLOGIC QLA2XXX FC-SCSI DRIVER" , "James E.J. Bottomley" , "open list:QLOGIC QLA2XXX FC-SCSI DRIVER" , open list , Joern Engel , Spencer Baugh , Dilip Kumar Uppugandla , target-devel@vger.kernel.org, Bart Van Assche Subject: Re: [PATCH] qla2xxx: Return the fabric command state for non-task management requests Message-ID: <20150723094651.GA15301@infradead.org> References: <1437516477-30554-3-git-send-email-sbaugh@catern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1437516477-30554-3-git-send-email-sbaugh@catern.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 807 Lines: 17 On Tue, Jul 21, 2015 at 03:07:55PM -0700, Spencer Baugh wrote: > From: Dilip Kumar Uppugandla > > Invoking get_cmd_state for qla2xxx always returns 0. Instead change it > to return the actual fabric state from qla_tgt_cmd. This will help with > debugging. I think the ->get_cmd_state callback should go away instead. Returning values with zero meaning to the core in a callback doesn't make much sense. I'd rather build some real structured debugging infrastructure, so it would be useful if you could explain the use case for this. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/