public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Willem Riede <wrlk@riede.org>
To: linux-scsi@vger.kernel.org
Subject: Re: [PATCH] driver model for scsi upper drivers, take 2
Date: Wed, 18 Jun 2003 05:04:25 -0400	[thread overview]
Message-ID: <20030618090425.GU998@linnie.riede.org> (raw)
In-Reply-To: <"from hch"@lst.de>

On 2003.05.27 05:43, Christoph Hellwig wrote:
> On Tue, May 27, 2003 at 09:32:18AM +0200, Christoph Hellwig wrote:
> >  - removed the tape sysfs pseudodevice crap that caused hangs
> >  - switched sg to a class_interface.  This means sg can be used
> >    on devices already claimed be an upper driver again.  This
> >    also means I had to remove the sg sysfs attributes temporarily
> >    because the old mechanism is gone, but I'll restore them
> >    differently in a followon patch.
> 
> Yikes, this was the old patch again.  Here's the right one:
> 

> --- 1.24/drivers/scsi/ide-scsi.c	Thu May 15 04:55:52 2003
> +++ edited/drivers/scsi/ide-scsi.c	Mon May 26 10:12:22 2003
> @@ -771,6 +771,10 @@
>  static inline int should_transform(ide_drive_t *drive, Scsi_Cmnd *cmd)
>  {
>  	idescsi_scsi_t *scsi = drive_to_idescsi(drive);
> +
> +	/* this was a layering violation and we can't support it
> +	   anymore, sorry. */
> +#if 0
>  	struct gendisk *disk = cmd->request->rq_disk;
>  
>  	if (disk) {
> @@ -778,6 +782,7 @@
>  		if (strcmp((*p)->scsi_driverfs_driver.name, "sg") == 0)
>  			return test_bit(IDESCSI_SG_TRANSFORM, &scsi->transform);
>  	}
> +#endif

You removed whatever capability was provided by IDESCSI_SG_TRANSFORM.
Just curious, what did that do? And, does that capability need to be
replaced, and if so, any suggestions how to do so?

Thanks, Willem Riede.

      parent reply	other threads:[~2003-06-18  8:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-27  7:32 [PATCH] driver model for scsi upper drivers, take 2 Christoph Hellwig
2003-05-27  9:43 ` Christoph Hellwig
2003-05-29  9:23   ` Kai Makisara
     [not found]   ` <"from hch"@lst.de>
2003-06-18  9:04     ` Willem Riede [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=20030618090425.GU998@linnie.riede.org \
    --to=wrlk@riede.org \
    --cc=linux-scsi@vger.kernel.org \
    /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