From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH 1/2] target: Fix LUN_RESET active I/O handling for ACK_KREF Date: Wed, 13 Jan 2016 09:34:46 +0100 Message-ID: <20160113083446.GA13330@lst.de> References: <1452594245-921-1-git-send-email-nab@daterainc.com> <1452594245-921-2-git-send-email-nab@daterainc.com> <20160112152059.GB2294@lst.de> <56952AB0.1070806@sandisk.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <56952AB0.1070806@sandisk.com> Sender: target-devel-owner@vger.kernel.org To: Bart Van Assche Cc: Christoph Hellwig , "Nicholas A. Bellinger" , target-devel , linux-scsi , Quinn Tran , Himanshu Madhani , Sagi Grimberg , Hannes Reinecke , Andy Grover , Nicholas Bellinger List-Id: linux-scsi@vger.kernel.org On Tue, Jan 12, 2016 at 08:32:48AM -0800, Bart Van Assche wrote: > Hello Christoph, > > How about eliminating the TARGET_SCF_ACK_KREF flag ? If a command would > only be freed upon the last target_put_sess_cmd() call then I think that > the check_stop_free() callback wouldn't have to call target_put_sess_cmd() > and hence that the TARGET_SCF_ACK_KREF flag could be removed. Yes, that's what I meant. I think it shoul be generally feasibly, but would require a careful audit of the !TARGET_SCF_ACK_KREF code path first.