From: Dave Boutcher <sleddog@us.ibm.com>
To: Christoph Hellwig <hch@infradead.org>
Cc: linux-scsi@vger.kernel.org
Subject: Re: [PATCH] ibmvscsi driver - next version
Date: Mon, 23 Feb 2004 13:41:36 -0600 [thread overview]
Message-ID: <opr3t8zmyel6e53g@us.ibm.com> (raw)
In-Reply-To: <20040223144542.A9624@infradead.org>
Chrisoph,
Thanks for the fast revew!!! I'll get a new version out today. A couple
of comments on comments...
On Mon, 23 Feb 2004 14:45:42 +0000, Christoph Hellwig <hch@infradead.org>
wrote:
> +#include <linux/module.h>
> +#include <scsi/scsi_device.h>
> +#include "ibmvscsi.h"
>
> any reason you hid all headers in ibmvscsi.h? normally we include
> them in the source files directly.
Philosophy question....I usually assume that a header file should in turn
include anything it needs...so ibmvscsi.h includes all the scsi header
files it uses...bad philosophy?
> + /* If we can't find this event, just return false */
> + if (found_evt == NULL) {
> + printk(KERN_ERR "ibmvscsi: failed to abort command\n");
> + return FAILED;
> + }
>
> This can't ever happen. You will only get called for commands
> that you have accepted in queuecommand and not called the completion
> routine for.
The above code was in the abort routine....I would personally prefer to
leave the check in there from pure paranoia. If we are into aborts, bad
things are happening, and I don't really care about code path in
abort...perhaps I should add a "this should never happen" comment? :-) I
could make it a BUG()...I'm not a huge fan of BUG() in drivers...
> +/**
> + * This stub is needed by ibmvscsi
> + */
> +void ibmvscsi_task(unsigned long data)
> +{
> +}
>
> I think you should just set up the task in the rpa subdriver
> when it's not needed by the iseries one.
The INIT_WORK call needs to be done before we get back to the subdriver in
case the first message gets turned around really fast. Having this stub
seemed the cleanest way to handle that generically.
Dave B
next prev parent reply other threads:[~2004-02-23 19:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-23 4:24 [PATCH] ibmvscsi driver - next version Dave Boutcher
2004-02-23 14:45 ` Christoph Hellwig
2004-02-23 19:41 ` Dave Boutcher [this message]
2004-02-23 19:49 ` Christoph Hellwig
2004-02-23 20:52 ` Brian King
2004-02-23 21:08 ` Christoph Hellwig
2004-02-23 22:08 ` Mike Anderson
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=opr3t8zmyel6e53g@us.ibm.com \
--to=sleddog@us.ibm.com \
--cc=hch@infradead.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