Skip to content

Commit

Permalink
Remove autoconf check for CONFIG_PREEMPT
Browse files Browse the repository at this point in the history
The autoconf macro which failed if CONFIG_PREEMPT was set in the kernel
config was removed. With the inclusion of a few previous patches
targeting support for preempt enabled kernels, it is now safe to run
with this kernel config option enabled.

Signed-off-by: Prakash Surya <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #83
  • Loading branch information
Prakash Surya authored and behlendorf committed Aug 27, 2012
1 parent ca8b5af commit f86373f
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions config/kernel.m4
Original file line number Diff line number Diff line change
Expand Up @@ -393,28 +393,9 @@ AC_DEFUN([ZFS_AC_KERNEL_CONFIG], [
[Define to 1 if licensed under the GPL])
])
ZFS_AC_KERNEL_CONFIG_PREEMPT
ZFS_AC_KERNEL_CONFIG_DEBUG_LOCK_ALLOC
])

dnl #
dnl # Check CONFIG_PREEMPT
dnl #
dnl # Premptible kernels will be supported in the future. But at the
dnl # moment there are a few places in the code which need to be updated
dnl # to accomidate them. Until that work occurs we should detect this
dnl # at configure time and fail with a sensible message. Otherwise,
dnl # people will be able to build successfully, however they will have
dnl # stability problems. See https://github.com/zfsonlinux/zfs/issues/83
dnl #
AC_DEFUN([ZFS_AC_KERNEL_CONFIG_PREEMPT], [
ZFS_LINUX_CONFIG([PREEMPT],
AC_MSG_ERROR([
*** Kernel built with CONFIG_PREEMPT which is not supported.
*** You must rebuild your kernel without this option.]), [])
])

dnl #
dnl # Check CONFIG_DEBUG_LOCK_ALLOC
dnl #
Expand Down

0 comments on commit f86373f

Please sign in to comment.