mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Bart Van Assche <bvanassche@acm.org>
To: JiangJianJun <jiangjianjun3@huawei.com>,
	James.Bottomley@HansenPartnership.com,
	martin.petersen@oracle.com, linux-scsi@vger.kernel.org,
	linux-kernel@vger.kernel.org
Cc: hare@suse.de, dlemoal@kernel.org, yangxingui@huawei.com,
	hewenliang4@huawei.com, yangyun50@huawei.com,
	wuyifeng10@huawei.com, wubo40@huawei.com
Subject: Re: [PATCH] scsi: scsi_error: the Error Handler base on SCSI Device
Date: Tue, 25 Nov 2025 08:36:22 -0800	[thread overview]
Message-ID: <b62930b3-9b80-4b06-b922-c38c7e309048@acm.org> (raw)
In-Reply-To: <20251125124843.1613400-1-jiangjianjun3@huawei.com>


On 11/25/25 5:48 AM, JiangJianJun wrote:
> When a SCSI device fails, SCSI locks the host and enters an error handler,
> which causes all I/O operations on the host to be locked. This performance
> impact is even more pronounced when a large number of devices are connected
> to the same host. So I believe it's necessary to downgrade the large lock.
> 
> This commit binds an Error Handler to the device, so that when a device
> failure occurs, only the current device is locked. If the device fails to
> recover, the default Error Handler will still be activated.

The current behavior should be retained as the default and the new
behavior should only be enabled if a SCSI LLD requests the new behavior
because many SCSI LLD .eh_host_reset_handler implementations are based
on the assumption that no I/O is in progress if they are called.

Bart.

  reply	other threads:[~2025-11-25 16:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-25 12:48 JiangJianJun
2025-11-25 16:36 ` Bart Van Assche [this message]
2025-11-26  3:07   ` JiangJianJun
2025-11-28 14:31 JiangJianJun

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b62930b3-9b80-4b06-b922-c38c7e309048@acm.org \
    --to=bvanassche@acm.org \
    --cc=James.Bottomley@HansenPartnership.com \
    --cc=dlemoal@kernel.org \
    --cc=hare@suse.de \
    --cc=hewenliang4@huawei.com \
    --cc=jiangjianjun3@huawei.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=martin.petersen@oracle.com \
    --cc=wubo40@huawei.com \
    --cc=wuyifeng10@huawei.com \
    --cc=yangxingui@huawei.com \
    --cc=yangyun50@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®