All of lore.kernel.org
 help / color / mirror / Atom feed
From: Niklas Cassel <cassel@kernel.org>
To: Hannes Reinecke <hare@suse.de>
Cc: "Martin K. Petersen" <martin.petersen@oracle.com>,
	Christoph Hellwig <hch@lst.de>,
	James Bottomley <james.bottomley@hansenpartnership.com>,
	linux-scsi@vger.kernel.org, Wenchao Hao <haowenchao22@gmail.com>,
	Xingui Yang <yangxingui@huawei.com>
Subject: Re: [PATCHv8 00/10] scsi: EH rework, main part
Date: Tue, 5 Nov 2024 16:47:31 +0100	[thread overview]
Message-ID: <Zyo-E1PCvx_XULvg@ryzen> (raw)
In-Reply-To: <a6cc3085-fa5e-4b23-8847-3e238143e191@suse.de>

Hello Hannes,

On Tue, Nov 05, 2024 at 04:22:40PM +0100, Hannes Reinecke wrote:
> On 11/5/24 10:10, Niklas Cassel wrote:
> > Hello Hannes,
> > 
> > On Mon, Oct 23, 2023 at 11:28:27AM +0200, Hannes Reinecke wrote:
> > > Hi all,
> > > 
> > > (taking up an old thread:)
> > > here's now the main part of my EH rework.
> > > It modifies the reset callbacks for SCSI EH such that
> > > each callback (eh_host_reset_handler, eh_bus_reset_handler,
> > > eh_target_reset_handler, eh_device_reset_handler) only
> > > references the actual entity it needs to work on
> > > (ie 'Scsi_Host', (scsi bus), 'scsi_target', 'scsi_device'),
> > > and the 'struct scsi_cmnd' is dropped from the argument list.
> > > This simplifies the handler themselves as they don't need to
> > > exclude some 'magic' command, and we don't need to allocate
> > > a mock 'struct scsi_cmnd' when issuing a reset via SCSI ioctl.
> > > 
> > > The entire patchset can be found at:
> > > 
> > > https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git
> > > branch eh-rework.v8
> > > 
> > > As usual, comments and reviews are welcome.
> > 
> > This seems to be the latest version of your EH rework.
> > 
> > Do you have any plans to send a v9?
> > 
> Weelll ... I didn't really proceed with that, as that requires
> for some LLDDs to set a side a command tag for TMF.
> 
> It was relatively easy pre-multiqueue times (where you could just
> reduce max_commands by 1), but for blk-mq that now longer works.
> 
> We need to do some really cumbersome things (just look at fnic ...)
> and I hoped I could get the 'reserved commands for TMF' patchset
> in first, so then this one would be easy.

I see, I didn't realize that the series had outstanding dependencies.


For anyone else looking for the actual series in lore, here there are:

EH rework prep patches, part 1:
https://lore.kernel.org/linux-scsi/20231002154328.43718-1-hare@suse.de/
- This series has been merged by Martin, and was included in v6.7.

EH rework prep patches, part 2:
https://lore.kernel.org/linux-scsi/20231023091507.120828-1-hare@suse.de/
- This series has not been merged, and is most likely the
  'reserved commands for TMF' series that Hannes is referring to.

EH rework, main part (or part 3):
https://lore.kernel.org/linux-scsi/20231023092837.33786-1-hare@suse.de/
- Depends on part 2 (which has not been merged yet).


> 
> Alas, this hasn't happened, and so I didn't continue on that work.
> But I'll see if I can resurrect it.

      reply	other threads:[~2024-11-05 15:47 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-23  9:28 [PATCHv8 00/10] scsi: EH rework, main part Hannes Reinecke
2023-10-23  9:28 ` [PATCH 01/10] scsi: Use Scsi_Host as argument for eh_host_reset_handler Hannes Reinecke
2023-10-25 11:40   ` Benjamin Block
2023-10-23  9:28 ` [PATCH 02/10] scsi: Use Scsi_Host and channel number as argument for eh_bus_reset_handler() Hannes Reinecke
2023-10-25 13:33   ` Benjamin Block
2023-10-25 13:36     ` Hannes Reinecke
2023-10-25 15:15       ` Benjamin Block
2023-10-23  9:28 ` [PATCH 03/10] scsi: Use scsi_target as argument for eh_target_reset_handler() Hannes Reinecke
2023-10-25 15:11   ` Benjamin Block
2023-10-25 15:35     ` Hannes Reinecke
2023-10-25 15:49       ` Benjamin Block
2023-10-23  9:28 ` [PATCH 04/10] scsi: Use scsi_device as argument to eh_device_reset_handler() Hannes Reinecke
2023-10-26 12:24   ` Benjamin Block
2023-10-26 12:39     ` Hannes Reinecke
2023-10-26 12:44       ` Benjamin Block
2023-10-23  9:28 ` [PATCH 05/10] scsi: set host byte after EH completed Hannes Reinecke
2023-10-26 12:58   ` Benjamin Block
2023-10-23  9:28 ` [PATCH 06/10] scsi_error: iterate over list of failed commands in scsi_eh_bus_reset() Hannes Reinecke
2023-10-26 13:19   ` Benjamin Block
2023-10-23  9:28 ` [PATCH 07/10] scsi: Do not allocate scsi command in scsi_ioctl_reset() Hannes Reinecke
2023-10-26 13:47   ` Benjamin Block
2023-10-23  9:28 ` [PATCH 08/10] scsi_error: iterate over list of failed commands in scsi_eh_bus_device_reset() Hannes Reinecke
2023-10-26 13:54   ` Benjamin Block
2023-10-23  9:28 ` [PATCH 09/10] scsi_error: map FAST_IO_FAIL to -EAGAIN in SCSI EH Hannes Reinecke
2023-10-26 14:08   ` Benjamin Block
2023-10-26 16:50   ` Mike Christie
2023-10-27  5:05     ` Hannes Reinecke
2023-10-23  9:28 ` [PATCH 10/10] scsi: remove SUBMITTED_BY_SCSI_RESET_IOCTL Hannes Reinecke
2023-10-26 14:12   ` Benjamin Block
2023-10-24 17:30 ` [PATCHv8 00/10] scsi: EH rework, main part Benjamin Block
2023-10-24 17:40   ` Hannes Reinecke
2023-10-24 17:57     ` Benjamin Block
2024-03-06 13:40 ` Wenchao Hao
2024-11-05  9:10 ` Niklas Cassel
2024-11-05 15:22   ` Hannes Reinecke
2024-11-05 15:47     ` Niklas Cassel [this message]

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=Zyo-E1PCvx_XULvg@ryzen \
    --to=cassel@kernel.org \
    --cc=haowenchao22@gmail.com \
    --cc=hare@suse.de \
    --cc=hch@lst.de \
    --cc=james.bottomley@hansenpartnership.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=martin.petersen@oracle.com \
    --cc=yangxingui@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.