From: Christoph Hellwig <hch@infradead.org>
To: arnd@bergmann-dalldorf.de
Cc: Marcelo Tosatti <marcelo@conectiva.com.br>,
lkml <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] 18/18 scsi core changes
Date: Mon, 5 Aug 2002 18:12:34 +0100 [thread overview]
Message-ID: <20020805181234.B16035@infradead.org> (raw)
In-Reply-To: <200208052008.35187.arndb@de.ibm.com>; from arndb@de.ibm.com on Mon, Aug 05, 2002 at 08:08:35PM +0200
On Mon, Aug 05, 2002 at 08:08:35PM +0200, Arnd Bergmann wrote:
> This patch does not look fit for inclusion to me,
It absolutely does not look good for inclusion.
> but appearantly it's
> needed if anyone actually wants to use the new zfcp driver I sent with
> patch 10/18...
the zfcp driver itself is so ugly that I wonder you even show it publically..
> +if [ "$CONFIG_ARCH_S390" != "y" ]; then
> dep_tristate '7000FASST SCSI support' CONFIG_SCSI_7000FASST $CONFIG_SCSI
> dep_tristate 'ACARD SCSI support' CONFIG_SCSI_ACARD $CONFIG_SCSI
> dep_tristate 'Adaptec AHA152X/2825 support' CONFIG_SCSI_AHA152X $CONFIG_SCSI
all these entries want indentation by three spaces. See
Documentation/CodingStyle.
> +if [ "$CONFIG_ARCH_S390" = "y" ]; then
> +dep_tristate 'IBM z900 FCP host bus adapter driver' CONFIG_ZFCP $CONFIG_QDIO
dito.
> scsi_unregister(struct Scsi_Host * sh){
> struct Scsi_Host * shpnt;
> Scsi_Host_Name *shn;
> + char name[10];
> +
> + /* kill error handling thread */
> + if (sh->hostt->use_new_eh_code
> + && sh->ehandler != NULL) {
> + DECLARE_MUTEX_LOCKED(sem);
> +
> + sh->eh_notify = &sem;
> + send_sig(SIGHUP, sh->ehandler, 1);
> + down(&sem);
> + sh->eh_notify = NULL;
> + }
> +
> + /* remove proc entry */
> +#ifdef CONFIG_PROC_FS
> + sprintf(name, "%d", sh->host_no);
> + remove_proc_entry(name, sh->hostt->proc_dir);
> +#endif
this change actually looks useful. but I don't think it's suitable for
stable series.
> diff -urN linux-2.4.19-rc3/drivers/scsi/scsi.h linux-2.4.19-s390/drivers/scsi/scsi.h
> --- linux-2.4.19-rc3/drivers/scsi/scsi.h Tue Jul 30 09:02:28 2002
> +++ linux-2.4.19-s390/drivers/scsi/scsi.h Tue Jul 30 09:02:55 2002
> @@ -390,6 +390,17 @@
> #include <asm/pgtable.h>
> #define CONTIGUOUS_BUFFERS(X,Y) \
> (virt_to_phys((X)->b_data+(X)->b_size-1)+1==virt_to_phys((Y)->b_data))
> +#elif defined(CONFIG_ARCH_S390) || defined(CONFIG_ARCH_S390X)
> +#define _CONTIGUOUS_BUFFERS(xd, xs, yd, ys) \
> + (((xd + xs) == yd) \
> + && ((xd & PAGE_MASK) == ((yd + ys - 1) & PAGE_MASK)))
> +
> +#define CONTIGUOUS_BUFFERS(X,Y) \
> + _CONTIGUOUS_BUFFERS( \
> + (unsigned long)(X)->b_data, \
> + (unsigned long)(X)->b_size, \
> + (unsigned long)(Y)->b_data, \
> + (unsigned long)(Y)->b_size)
This area is going to change heavily with block-highmem in 2.4.20.
Please don't touch it just now.
> + /*
> + * We need to recount the number of
> + * scatter-gather segments here - the
> + * normal case code assumes this to be
> + * correct, as it would be a performance
> + * loss to always recount. Handling
> + * errors is always unusual, of course.
> + */
> + recount_segments(SCpnt);
might be worth to get the indentation right, heh?
What is the exact reason to move it around?
next prev parent reply other threads:[~2002-08-05 17:09 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-05 18:12 0/18 2.4.19 architecture updates for s390 following Arnd Bergmann
2002-08-05 17:47 ` [PATCH] 12/18 console_unblank bug fix Arnd Bergmann
2002-08-05 17:48 ` [PATCH] 13/18 Export elevator_init Arnd Bergmann
2002-08-05 17:50 ` [PATCH] 14/18 support for partition labels in devfs Arnd Bergmann
2002-08-05 17:14 ` Christoph Hellwig
2002-08-05 17:54 ` [PATCH] 15/18 better pte invalidation Arnd Bergmann
2002-08-05 17:01 ` Christoph Hellwig
2002-08-06 11:05 ` Arnd Bergmann
2002-08-06 9:43 ` Christoph Hellwig
2002-08-10 12:28 ` Paul Mackerras
2002-08-05 17:56 ` [PATCH] 16/18 add more possible root devices Arnd Bergmann
2002-08-05 17:15 ` Christoph Hellwig
2002-08-06 11:23 ` Arnd Bergmann
2002-08-05 18:04 ` [PATCH] 17/18 support arbitrary devfs names for tty devices Arnd Bergmann
2002-08-05 18:08 ` [PATCH] 18/18 scsi core changes Arnd Bergmann
2002-08-05 17:12 ` Christoph Hellwig [this message]
2002-08-06 11:06 ` Arnd Bergmann
2002-08-06 9:18 ` Christoph Hellwig
2002-08-06 23:10 ` Ingo Adlung
2002-08-06 23:12 ` Christoph Hellwig
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=20020805181234.B16035@infradead.org \
--to=hch@infradead.org \
--cc=arnd@bergmann-dalldorf.de \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo@conectiva.com.br \
/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