Merge commit 'refs/top-bases/top' into top

This commit is contained in:
Brian Behlendorf 2010-07-14 12:50:59 -07:00
commit 849bf9bd72
2 changed files with 14 additions and 12 deletions

View File

@ -84,13 +84,14 @@ AC_DEFUN([ZFS_AC_KERNEL], [
2>/dev/null | grep -v obj | tail -1)
fi
if test -e $sourcelink; then
if test -n "$sourcelink" && test -e ${sourcelink}; then
kernelsrc=`readlink -f ${sourcelink}`
else
AC_MSG_RESULT([Not found])
AC_MSG_ERROR([
*** Please specify the location of the kernel source
*** with the '--with-linux=PATH' option])
*** Please make sure the kernel devel package for your distribution
*** is installed then try again. If that fails you can specify the
*** location of the kernel source with the '--with-linux=PATH' option.])
fi
else
if test "$kernelsrc" = "NONE"; then
@ -101,12 +102,12 @@ AC_DEFUN([ZFS_AC_KERNEL], [
AC_MSG_RESULT([$kernelsrc])
AC_MSG_CHECKING([kernel build directory])
if test -z "$kernelbuild"; then
if test -d ${kernelsrc}-obj/`arch`/`arch`; then
kernelbuild=${kernelsrc}-obj/`arch`/`arch`
elif test -d ${kernelsrc}-obj/`arch`/default; then
kernelbuild=${kernelsrc}-obj/`arch`/default
elif test -d `dirname ${kernelsrc}`/build-`arch`; then
kernelbuild=`dirname ${kernelsrc}`/build-`arch`
if test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
kernelbuild=${kernelsrc}-obj/${target_cpu}/default
elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
else
kernelbuild=${kernelsrc}
fi
@ -206,8 +207,9 @@ AC_DEFUN([ZFS_AC_SPL], [
else
AC_MSG_RESULT([Not found])
AC_MSG_ERROR([
*** Please specify the location of the spl source
*** with the '--with-spl=PATH' option])
*** Please make sure the spl devel package for your distribution
*** is installed then try again. If that fails you can specify the
*** location of the spl source with the '--with-spl=PATH' option.])
fi
else
if test "$splsrc" = "NONE"; then

View File

@ -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;