From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755174AbcBBOdU (ORCPT ); Tue, 2 Feb 2016 09:33:20 -0500 Received: from mail-wm0-f54.google.com ([74.125.82.54]:33883 "EHLO mail-wm0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754970AbcBBOdQ (ORCPT ); Tue, 2 Feb 2016 09:33:16 -0500 Subject: Re: [PATCH] NVMe: do not touch sq door bell if nvmeq has been suspended To: Keith Busch References: <1454341324-21273-1-git-send-email-mail_weber_wang@163.com> <56AF8DB5.70206@fb.com> <56B0A401.30306@dev.mellanox.co.il> <20160202142756.GA10690@localhost.localdomain> Cc: Wenbo Wang , Jens Axboe , Wenbo Wang , "Wenwei.Tao" , "linux-kernel@vger.kernel.org" , "linux-nvme@lists.infradead.org" From: Sagi Grimberg Message-ID: <56B0BE26.6070208@dev.mellanox.co.il> Date: Tue, 2 Feb 2016 16:33:10 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <20160202142756.GA10690@localhost.localdomain> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hey Keith, >> First of all, I think we need to cancel all >> inflight requests before nvme_dev_unmap. > > IO cancelling is where it is because it protects against host memory > corruption. If you're going to mess with the ordering, just make sure > the PCI device is disabled from bus mastering first. Little help? :) What corruption is the ordering protecting against? From mboxrd@z Thu Jan 1 00:00:00 1970 From: sagig@dev.mellanox.co.il (Sagi Grimberg) Date: Tue, 2 Feb 2016 16:33:10 +0200 Subject: [PATCH] NVMe: do not touch sq door bell if nvmeq has been suspended In-Reply-To: <20160202142756.GA10690@localhost.localdomain> References: <1454341324-21273-1-git-send-email-mail_weber_wang@163.com> <56AF8DB5.70206@fb.com> <56B0A401.30306@dev.mellanox.co.il> <20160202142756.GA10690@localhost.localdomain> Message-ID: <56B0BE26.6070208@dev.mellanox.co.il> Hey Keith, >> First of all, I think we need to cancel all >> inflight requests before nvme_dev_unmap. > > IO cancelling is where it is because it protects against host memory > corruption. If you're going to mess with the ordering, just make sure > the PCI device is disabled from bus mastering first. Little help? :) What corruption is the ordering protecting against?