aboutsummaryrefslogtreecommitdiffstats
path: root/block/blk-exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'block/blk-exec.c')
-rw-r--r--block/blk-exec.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/block/blk-exec.c b/block/blk-exec.c
index dbf4502b1d67..f4d27b12c90b 100644
--- a/block/blk-exec.c
+++ b/block/blk-exec.c
@@ -132,6 +132,11 @@ int blk_execute_rq(struct request_queue *q, struct gendisk *bd_disk,
132 if (rq->errors) 132 if (rq->errors)
133 err = -EIO; 133 err = -EIO;
134 134
135 if (rq->sense == sense) {
136 rq->sense = NULL;
137 rq->sense_len = 0;
138 }
139
135 return err; 140 return err;
136} 141}
137EXPORT_SYMBOL(blk_execute_rq); 142EXPORT_SYMBOL(blk_execute_rq);