From: Christoph Hellwig <hch@lst.de>
To: axboe@kernel.dk
Cc: linux-ide@vger.kernel.org, linux-scsi@vger.kernel.org,
linux-block@vger.kernel.org
Subject: [PATCH 2/3] ide-pm: always pass 0 error to __blk_end_request_all
Date: Wed, 26 Apr 2017 09:34:21 +0200 [thread overview]
Message-ID: <20170426073422.14511-3-hch@lst.de> (raw)
In-Reply-To: <20170426073422.14511-1-hch@lst.de>
ide_pm_execute_rq exectures a PM request synchronously, and in the failure
case where it calls __blk_end_request_all it never checks the error field
passed to the end_io callback, so don't bother setting it.
Signed-off-by: Christoph Hellwig <hch@lst.de>
---
drivers/ide/ide-pm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/ide/ide-pm.c b/drivers/ide/ide-pm.c
index 277c2bb7616f..0977fc1f40ce 100644
--- a/drivers/ide/ide-pm.c
+++ b/drivers/ide/ide-pm.c
@@ -57,7 +57,7 @@ static int ide_pm_execute_rq(struct request *rq)
if (unlikely(blk_queue_dying(q))) {
rq->rq_flags |= RQF_QUIET;
scsi_req(rq)->result = -ENXIO;
- __blk_end_request_all(rq, scsi_req(rq)->result);
+ __blk_end_request_all(rq, 0);
spin_unlock_irq(q->queue_lock);
return -ENXIO;
}
--
2.11.0
next prev parent reply other threads:[~2017-04-26 7:34 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-26 7:34 three little req->errors follow ups Christoph Hellwig
2017-04-26 7:34 ` [PATCH 1/3] scsi_transport_sas: always pass 0 error to blk_end_request_all Christoph Hellwig
2017-04-26 7:34 ` Christoph Hellwig [this message]
2017-04-26 10:32 ` [PATCH 2/3] ide-pm: always pass 0 error to __blk_end_request_all Bartlomiej Zolnierkiewicz
2017-04-26 14:39 ` David Miller
2017-04-26 7:34 ` [PATCH 3/3] ide-pm: always pass 0 error to ide_complete_rq in ide_do_devset Christoph Hellwig
2017-04-26 10:33 ` Bartlomiej Zolnierkiewicz
2017-04-26 14:39 ` David Miller
2017-04-26 13:54 ` three little req->errors follow ups Jens Axboe
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=20170426073422.14511-3-hch@lst.de \
--to=hch@lst.de \
--cc=axboe@kernel.dk \
--cc=linux-block@vger.kernel.org \
--cc=linux-ide@vger.kernel.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