From fc3e47c6d4d09a0829bb1920a1a0579ba15f3630 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Wed, 14 Jul 2010 12:35:24 -0700 Subject: [PATCH] Corrently handle return code in blk_end_request_x This was caught under Debian Lenny builds because they are one of the few/only current distros based on a 2.6.26 kernel. In one of the build conditionals I accidently failed to assign the return code to rc before returning. --- module/zfs/include/sys/blkdev.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/zfs/include/sys/blkdev.h b/module/zfs/include/sys/blkdev.h index 53ac24656d..b84f66aed4 100644 --- a/module/zfs/include/sys/blkdev.h +++ b/module/zfs/include/sys/blkdev.h @@ -125,7 +125,7 @@ blk_end_request_x(struct request *req, int error, unsigned int nr_bytes) bool rc; spin_lock_irq(q->queue_lock); - __blk_end_request_x(req, error, nr_bytes); + rc = __blk_end_request_x(req, error, nr_bytes); spin_unlock_irq(q->queue_lock); return rc;