From: chris hyser <chris.hyser@oracle.com>
To: sparclinux@vger.kernel.org
Subject: [PATCH v2] sparc64: sunvdc: Complete I/O request if vdisk server error
Date: Tue, 02 Dec 2014 16:53:37 +0000 [thread overview]
Message-ID: <547DEE91.4050903@oracle.com> (raw)
In-Reply-To: <546FA956.1070005@oracle.com>
Hi Dave,
Sending it again. Thanks.
-chrish
-------- Forwarded Message --------
Subject: [PATCH v2] sparc64: sunvdc: Complete I/O request if vdisk server error
Date: Fri, 21 Nov 2014 16:06:30 -0500
From: chris hyser <chris.hyser@oracle.com>
To: sparclinux@vger.kernel.org
Sorry for the confusion of the prior message. Below was the intended commit message.
-chrish
sparc64: sunvdc: Complete I/O request if vdisk server error
If virtual disk server returns an I/O with an error and 0 data transferred,
complete the I/O with EIO to ensure initiating process does not hang
indefinitely.
Signed-off-by: Chris Hyser <chris.hyser@oracle.com>
diff --git a/drivers/block/sunvdc.c b/drivers/block/sunvdc.c
index 0ebadf9..17e9a50 100644
--- a/drivers/block/sunvdc.c
+++ b/drivers/block/sunvdc.c
@@ -279,7 +279,12 @@ static void vdc_end_one(struct vdc_port *port, struct vio_dring_state *dr,
rqe->req = NULL;
- __blk_end_request(req, (desc->status ? -EIO : 0), desc->size);
+ if (desc->status && desc->size = 0) {
+ printk(KERN_ERR PFX "virtual disk server I/O error %d\n",
+ desc->status);
+ __blk_end_request_all(req, -EIO);
+ } else
+ __blk_end_request(req, (desc->status ? -EIO : 0) , desc->size);
/* restart blk queue when ring is half emptied */
if (blk_queue_stopped(port->disk->queue) &&
next prev parent reply other threads:[~2014-12-02 16:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-21 21:06 [PATCH v2] sparc64: sunvdc: Complete I/O request if vdisk server error chris hyser
2014-11-21 21:11 ` David Miller
2014-12-02 16:53 ` chris hyser [this message]
2014-12-12 2:44 ` 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=547DEE91.4050903@oracle.com \
--to=chris.hyser@oracle.com \
--cc=sparclinux@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.