From: Christoph Hellwig <hch@lst.de>
To: Jens Axboe <axboe@fb.com>
Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org
Subject: [PATCH 2/5] blk-mq: fix blk_mq_end_io_partial
Date: Wed, 2 Apr 2014 16:57:11 +0200 [thread overview]
Message-ID: <1396450634-32021-3-git-send-email-hch@lst.de> (raw)
In-Reply-To: <1396450634-32021-1-git-send-email-hch@lst.de>
We need to pass the actual nr_bytes instead of all bytes in the request.
Signed-off-by: Christoph Hellwig <hch@lst.de>
---
block/blk-mq.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/block/blk-mq.c b/block/blk-mq.c
index 44f738e..4274ee0 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -285,7 +285,7 @@ void blk_mq_free_request(struct request *rq)
bool blk_mq_end_io_partial(struct request *rq, int error, unsigned int nr_bytes)
{
- if (blk_update_request(rq, error, blk_rq_bytes(rq)))
+ if (blk_update_request(rq, error, nr_bytes))
return true;
blk_account_io_done(rq);
--
1.7.10.4
next prev parent reply other threads:[~2014-04-02 14:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-02 14:57 blk-mq updates, V3 Christoph Hellwig
2014-04-02 14:57 ` [PATCH 1/5] blk-mq: initialize resid_len Christoph Hellwig
2014-04-02 14:57 ` Christoph Hellwig [this message]
2014-04-02 14:57 ` [PATCH 3/5] blk-mq: do not initialize req->special Christoph Hellwig
2014-04-02 14:57 ` [PATCH 4/5] blk-mq: make ->flush_rq fully transparent to drivers Christoph Hellwig
2014-04-02 14:57 ` [PATCH 5/5] blk-mq: add ->init_request and ->exit_request methods 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=1396450634-32021-3-git-send-email-hch@lst.de \
--to=hch@lst.de \
--cc=axboe@fb.com \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®