Message ID | 20230328143442.2684167-1-yebin@huaweicloud.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <linux-scsi-owner@vger.kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7DC15C6FD18 for <linux-scsi@archiver.kernel.org>; Tue, 28 Mar 2023 14:35:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232949AbjC1OfM (ORCPT <rfc822;linux-scsi@archiver.kernel.org>); Tue, 28 Mar 2023 10:35:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232984AbjC1OfJ (ORCPT <rfc822;linux-scsi@vger.kernel.org>); Tue, 28 Mar 2023 10:35:09 -0400 Received: from dggsgout11.his.huawei.com (dggsgout11.his.huawei.com [45.249.212.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA47EC146; Tue, 28 Mar 2023 07:35:07 -0700 (PDT) Received: from mail02.huawei.com (unknown [172.30.67.169]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4PmBzW43hYz4f3wYw; Tue, 28 Mar 2023 22:35:03 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.127.227]) by APP3 (Coremail) with SMTP id _Ch0CgDn4R8X+yJkk4bgFg--.7384S4; Tue, 28 Mar 2023 22:35:04 +0800 (CST) From: Ye Bin <yebin@huaweicloud.com> To: jejb@linux.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Ye Bin <yebin10@huawei.com> Subject: [PATCH v2 0/3] limit set the host state by sysfs Date: Tue, 28 Mar 2023 22:34:39 +0800 Message-Id: <20230328143442.2684167-1-yebin@huaweicloud.com> X-Mailer: git-send-email 2.31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9x07UQzVbUUUUU= X-CM-SenderInfo: p1hex046kxt4xhlfz01xgou0bp/ X-CFilter-Loop: Reflected Precedence: bulk List-ID: <linux-scsi.vger.kernel.org> X-Mailing-List: linux-scsi@vger.kernel.org |
Series |
limit set the host state by sysfs
|
expand
|
From: Ye Bin <yebin10@huawei.com> Diff v2 vs v1: 1. Remove set scsi host state by sysfs, as set host state by sysfs may lead to functional issue. Scsi host state has it's own running state machine. 2. Introduce 'blocked' sysfs api for set scsi host blocking IO. Use this function we can do some test. Ye Bin (3): scsi: forbid to set scsi host state by sysfs scsi: introduce 'blocked' sysfs api scsi: blocking IO when host is set blocked drivers/scsi/scsi_lib.c | 2 ++ drivers/scsi/scsi_sysfs.c | 58 ++++++++++++++++++++++----------------- include/scsi/scsi_host.h | 8 ++++++ 3 files changed, 43 insertions(+), 25 deletions(-)