Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp805841ybi; Wed, 17 Jul 2019 05:12:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqxjkFIaElyvBgjLC0HkUmkWNrzcBFQfY6Ttje0unB44r6MfKVXBnY+RDndRLma4pukkTLTD X-Received: by 2002:a63:d4c:: with SMTP id 12mr41470683pgn.30.1563365564293; Wed, 17 Jul 2019 05:12:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563365564; cv=none; d=google.com; s=arc-20160816; b=md6RMGpVEWm01kVJxNXLX0Wa07WtjrwV6YR5p9t1LDSJDmPObB1G6SSYF1/vsCsgr6 qTBcdKFu+cbQte1C/iTMhLRN5Ws4cDXqu9LjAdE5Gw7Yg1uIC6cpmjianAIj8NPcBGJk 16yMHIM2i3h3TDUXse4dbofT1l8Jr5lV0sxjMiRKC0bzm3j41LgpvWSvmyuJ75muUq2i dePo4KeHH0lGUIlbKFtWmy3cuyQi1XGgPCDgUjtqg+lXDEXUjRXngknkEIOU1cWXT4uM bKmbYBatb95C+fz9l7dAabpx8lF+968JUSkUmXHfUjt8bzOfqkfeTjVSzlQQPav/xxqO sA6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=p/Gb7jEE+ZplI0EyTPs6qOyFsh+o6XOv4kVQ51JCMkA=; b=MjRt7ng0s2dmRqsVeb2y4tjTB7/DyxXTxGuz3b0THEeelaxf1aSDRfM/Au9SbrgPqt nQmqGKmp9ePC64DBO6m8FxghyUyKdeQRlkwBJTxouStL2xSIkojkvZUM9oyJbgU6pe9n gzcORoblduc73jgzgvnW5c4v9Owuvibb7VlXBsLry4jP5fqbVCJyqgYAW+CMuqJSg2sZ 4+v7JJ3kuQbCFSgbcA0xHgxhu80uCgook/TBoCz4otcRHPlYXsoAyYTFENjvwMMn1x/h sydJkl4BM367BrQWYlzwaSArNfeWXSCrmvSHtCAB4SZgIZWubMnBJzV4lTwQa8rJnjj8 EjxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="rcwhe/pO"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b92si22880172pjc.17.2019.07.17.05.12.27; Wed, 17 Jul 2019 05:12:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="rcwhe/pO"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726763AbfGQMMI (ORCPT + 99 others); Wed, 17 Jul 2019 08:12:08 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:34953 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726081AbfGQMMH (ORCPT ); Wed, 17 Jul 2019 08:12:07 -0400 Received: by mail-pl1-f196.google.com with SMTP id w24so11887378plp.2; Wed, 17 Jul 2019 05:12:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=p/Gb7jEE+ZplI0EyTPs6qOyFsh+o6XOv4kVQ51JCMkA=; b=rcwhe/pOh/DKHRE75RRh3McP6NnmkSW99cb7AUyjWSX12bH7QqCxEl4D6tlsJXdK3S gP8qjwnXpE4d7OadncmdHOzdNZbUYatXxmx+LTl/JPJ8JdcI8p8zuqMrMT/aWYiXlGr3 Q9nLc7wHVPm0w+sfk8qyEeKhunF00mRJmhzfQsWqtnY6c90r00rTBYhx2VUwQuZ8D+EX 2XjDlq8g3nVDmj/6JZoYDQeZD3kmsA0EI6d5RW3SK/t7FdGeSJ2gtiXFdcjqyJ5BrhBL Md4iAWujKNGP5mP6urAUoZLW1nT9PPTb/bRys4yy+lYiIGV5dqTGhgM+es2PUKewe1Jc WenQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=p/Gb7jEE+ZplI0EyTPs6qOyFsh+o6XOv4kVQ51JCMkA=; b=QYV4vPqyzWD4D2+YV1KG7qNSHCO77Wn9b0/aU9IxHTQV+VinRlaObKIIv0gkL8oWvB Ma3fYbFGY2dlPch2oA+JsT1dEXz+f5bm81YxuGK6uwcQH14eU9QncN/pL+8GGJJatBEv 1lbfg5E8t3icuGHlubvE8SvrlN4kleO1ivqBzwXok/Hv5GZKrhVD4B+I/YFcTG816Aot wSPg8isHAhr1Vrn6mIZLA9hI7SCGekwshY0qrfxswg4CGfRGvYLuEDIBfE58/YRRgFZH 2m8VLFnG9/g2D49UZDuGtqHxfNmp0xWPM1g3BwZvSOnmVwTWrmMhm9xaLD/ejYwu5HUD Fsrg== X-Gm-Message-State: APjAAAWT3mf2AhjjGl/Dg4sO7yVOe81eEfOpBbW6QpbFJhyqedDgzEtP 97OxhI/AmPVrmZJY+snOAQg= X-Received: by 2002:a17:902:2ae8:: with SMTP id j95mr39288806plb.276.1563365526969; Wed, 17 Jul 2019 05:12:06 -0700 (PDT) Received: from localhost ([123.213.206.190]) by smtp.gmail.com with ESMTPSA id b1sm22695471pfi.91.2019.07.17.05.12.05 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 17 Jul 2019 05:12:06 -0700 (PDT) Date: Wed, 17 Jul 2019 21:12:03 +0900 From: Minwoo Im To: Sreekanth Reddy Cc: minwoo.im@samsung.com, "sreekanth.reddy@broadcom.com" , "sathya.prakash@broadcom.com" , "suganath-prabu.subramani@broadcom.com" , "jejb@linux.ibm.com" , "martin.petersen@oracle.com" , "MPT-FusionLinux.pdl@broadcom.com" , "linux-kernel@vger.kernel.org" , "linux-scsi@vger.kernel.org" , "linux-block@vger.kernel.org" , Euihyeok Kwon , Sarah Cho , Sanggwan Lee , Gyeongmin Nam , Sungjun Park , Hannes Reinecke , Minwoo Im Subject: Re: [PATCH V2] mpt3sas: support target smid for [abort|query] task Message-ID: <20190717121203.GE10495@minwoo-desktop> References: <20190714034415epcms2p25f9787cb71993a30f58524d2f355b543@epcms2p2> <860cc8cf-6419-c649-b2d9-19b82f6ebc99@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <860cc8cf-6419-c649-b2d9-19b82f6ebc99@suse.de> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19-07-15 08:13:36, Hannes Reinecke wrote: > I think this is fundamentally wrong. > ABORT_TASK is used to abort a single task, which of course has to be > known beforehand. If you don't know the task, what exactly do you hope > to achieve here? Aborting random I/O? > Or, even worse, aborting I/O the driver uses internally and corrupt the > internal workflow of the driver? > > We should simply disallow any ABORT TASK from userspace if the TaskMID > is zero. And I would even argue to disabllow ABORT TASK from userspace > completely, as the smid is never relayed to userland, and as such the > user cannot know which task should be aborted. > > Cheers, > > Hannes Sreekanth, Could you please give some thoughts about what Hannes said?