Skip to content

Commit

Permalink
Corrently handle return code in blk_end_request_x
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
behlendorf committed Jul 14, 2010
1 parent 7cb1dca commit fc3e47c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/zfs/include/sys/blkdev.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fc3e47c

Please sign in to comment.