public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: Bob Doyle <doyle@primenet.com>
Cc: linux-scsi@vger.kernel.org
Subject: Re: BusLogic cleanup
Date: Wed, 7 Jan 2004 15:31:49 +0000	[thread overview]
Message-ID: <20040107153149.A29756@infradead.org> (raw)
In-Reply-To: <3FF513FE.17A1C2FD@primenet.com>; from doyle@primenet.com on Thu, Jan 01, 2004 at 11:47:26PM -0700

On Thu, Jan 01, 2004 at 11:47:26PM -0700, Bob Doyle wrote:
> I'm starting to do some cleanup to the BusLogic SCSI driver.
> Since I'm a rank-newbie at anything SCSI, I thought I'd post a snap-shot
> of where I am, and solicity direction and comments from the experts...
> 
> Please review and comment.

Patch looks okay so far.

> - I'd really really like to run the code through 'indent' to match the
>   kernel coding standards but for now I don't want to confuse formatting
>   changes with code changes.  It is very difficult to read as it is
>   currently formatted.

Indeed.  But it's not only a problem of indentation, but also of horrible
naming of datatypes, structure members & variable names.  You'll have to
to some major work on these first otherwise a driver that is run through
Lindent might be even more unreadable due to gazillions of linebreaks.

A good start would be to kill the silly typedefs for kernel / scsi datatypes..

> So - now the questions...
> 
> How do I test the eh_* handler functions?  I've tried everything
> I can think of to provoke them but haven't managed to.  For now,
> I don't know if they work or not.

The best testcase would be a faulty disk.  You could also try to get
into EH szenarios by wrong termination / cabling - but who wants to do
that to his system?

> Also I clearly don't understand the command completion in the
> context the error handlers.  Do the eh_* functions need to
> do command completion?

They shouldn't in theory, but for that you need to make sure the
driver leaves all queuing to the midlayer.  If you queue command
internaally to the driver the midlayer obviously doesn't know
about them.  One more reason not to do that.


  reply	other threads:[~2004-01-07 15:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-02  6:47 BusLogic cleanup Bob Doyle
2004-01-07 15:31 ` Christoph Hellwig [this message]
2004-01-07 17:02   ` Chiaki
2004-01-08  5:12   ` Bob Doyle
2004-01-08 15:26     ` Maciej W. Rozycki
  -- strict thread matches above, loose matches on Subject: below --
2004-01-08 14:58 Cress, Andrew R

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=20040107153149.A29756@infradead.org \
    --to=hch@infradead.org \
    --cc=doyle@primenet.com \
    --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