ceph messenger compile error on old backport (2.6.32)
Apologizes if this is not relevant.
I tried to compile Ceph client against a Lucid Ubuntu (Ubuntu 2.6.32-24-server), the master backport does not compile complaining for a missing definition of WQ_NON_REENTRANT.
Not an expert of Kernel workqueues but I understand that this mechanism was introduced in a post subversion of current Ubuntu stable.
Am I wrong assuming that the backport should not use Concurrency-managed workqueues? Is there a workaround for this?
Again, sorry if this is not relevant.
Dump of the error:
make -C libceph
make: Entering directory /home/gabriele/ceph-client-standalone/libceph' make -C /lib/modules/2.6.32-24-server/build M=/home/gabriele/ceph-client-standalone/libceph CONFIG_CEPH_LIB=m modules make[1]: Entering directory /usr/src/linux-headers-2.6.32-24-server'
CC [M] /home/gabriele/ceph-client-standalone/libceph/messenger.o/home/gabriele/ceph-client-standalone/libceph/messenger.c: In function ‘ceph_msgr_init’:/home/gabriele/ceph-client-standalone/libceph/messenger.c:99: error: implicit declaration of function ‘alloc_workqueue’ /home/gabriele/ceph-client-standalone/libceph/messenger.c:99: error:
‘WQ_NON_REENTRANT’ undeclared (first use in this function) /home/gabriele/ceph-client-standalone/libceph/messenger.c:99: error: (Each undeclared identifier is reported only once /home/gabriele/ceph-client-standalone/libceph/messenger.c:99: error: for each function it appears in.)
make[2]: *** [/home/gabriele/ceph-client-standalone/libceph/messenger.o] Error 1 make[1]: *** [_module_/home/gabriele/ceph-client-standalone/libceph] Error 2 make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-24-server'
make: *** [all] Error 2
make: Leaving directory `/home/gabriele/ceph-client-standalone/libceph'
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
2011/2/19 GabrieleB <[email protected]>:
Quoted 10 lines
Apologizes if this is not relevant.
I tried to compile Ceph client against a Lucid Ubuntu (Ubuntu 2.6.32-24-server), the master backport does not compile complaining for a missing definition of
WQ_NON_REENTRANT.
Not an expert of Kernel workqueues but I understand that this mechanism was introduced in a post subversion of current Ubuntu stable.
Am I wrong assuming that the backport should not use Concurrency-managed workqueues? Is there a workaround for this?
For kernel 2.6.32, the simplest wordaround is to revert the following commits:
c59cb6f net/ceph: make ceph_msgr_wq non-reentrant 6b40e7f ceph: fsc->*_wq's aren't used in memory reclaim path
Cheers,
Signature · 1 line
Henry Chang
Quoted 9 lines · Henry Chang <henry.cy.chang <at> gmail.com> writes:
For kernel 2.6.32, the simplest wordaround is to revert the following commits:
c59cb6f net/ceph: make
ceph_msgr_wqnon-reentrant 6b40e7f ceph: fsc->*_wq's aren't used in memory reclaim pathCheers,
Great, this did the job.
I had a look at the commits and I thought the first was a good candidate but I overlooked the second.
Thanks a lot.