[dm-devel] Re: 2.4 kernel patches: dm-daemon.c & spin_lock_irq
Brian
brian at photoresearchers.com
Tue Apr 6 16:01:01 UTC 2004
I had to make two modifications to the device-mapper source in order to
get the RHEL 3 ES latest kernel (2.4.21-9.0.1) to compile with the
latest stable device-mapper release (1.00.08). The first was changing
the argument to the spin_[un]lock_irq() functions from
"¤t->sigmask_lock" to "¤t->sighand->siglock". The second
was to block the redefinition of fls() in dm-io.c, which is now defined
in the kernel's "bitops.h". I'll leave it to the folk more closely
involved with the releases to determine how, if at all, these
alterations might be incorporated. My dm-io.c fix is pretty much a
hack; I'm sure there's a better way to check for definitions and make
sure that the DM code doesn't conflict with the kernel's bitops
functions. I've attached a patch file as well.
-Brian
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: linux-2.4.21-devmapper-addtl.patch
URL: <http://listman.redhat.com/archives/dm-devel/attachments/20040406/7c5e0da9/attachment.ksh>
More information about the dm-devel
mailing list