From: David Miller <davem@davemloft.net>
To: joe@perches.com
Cc: bzolnier@gmail.com, linux-ide@vger.kernel.org,
linux-kernel@vger.kernel.org, petkovbb@gmail.com,
htejun@gmail.com
Subject: Re: [patch 3/6] ide: always kill the whole request on error
Date: Tue, 23 Jun 2009 16:39:17 -0700 (PDT) [thread overview]
Message-ID: <20090623.163917.202270116.davem@davemloft.net> (raw)
In-Reply-To: <1245800274.29098.75.camel@Joe-Laptop.home>
From: Joe Perches <joe@perches.com>
Date: Tue, 23 Jun 2009 16:37:54 -0700
> On Tue, 2009-06-23 at 16:19 -0700, David Miller wrote:
>> From: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
>> Date: Tue, 23 Jun 2009 23:27:27 +0200
>> > From: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
>> > Subject: [PATCH] ide: always kill the whole request on error
>> > --- a/drivers/ide/ide-eh.c
>> > +++ b/drivers/ide/ide-eh.c
>> > @@ -149,7 +149,7 @@ static inline void ide_complete_drive_re
>> > if (rq && blk_special_request(rq) && rq->cmd[0] == REQ_DRIVE_RESET) {
>> > if (err <= 0 && rq->errors == 0)
>> > rq->errors = -EIO;
>> > - ide_complete_rq(drive, err ? err : 0, ide_rq_bytes(rq));
>> > + ide_complete_rq(drive, err ? err : 0, blk_rq_bytes(rq));
>
> Doesn't that "err ? err : 0" look odd?
> Why not just err?
These functions are full of surprises :-)
Yes, plain 'err' should be absolutely equivalent to what's
there right now.
next prev parent reply other threads:[~2009-06-23 23:39 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-23 21:27 Bartlomiej Zolnierkiewicz
2009-06-23 23:19 ` David Miller
2009-06-23 23:37 ` Joe Perches
2009-06-23 23:39 ` David Miller [this message]
2009-06-24 0:49 ` Bartlomiej Zolnierkiewicz
2009-06-24 4:37 ` David Miller
2009-06-24 6:49 ` David Miller
2009-06-24 9:38 ` Bartlomiej Zolnierkiewicz
2009-06-24 9:56 ` David Miller
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=20090623.163917.202270116.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=bzolnier@gmail.com \
--cc=htejun@gmail.com \
--cc=joe@perches.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=petkovbb@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome