Skip to main content

Problem with latest kernel

Thread needs solution

Hello,

If you use the latest version of Acronis on linuw with latest kernel (>3.7), the module snapapi26 will not load correctly with saying a problem with kernel_thread.

The problem is that kernel_thread not exist anymore.
I've created a patch to avoid this problem. Maybe this patch is not correct but it works.

For Acronis, when will you release a new version for latest kernel ?

Thanks.

Regards,
Alessandro

This is a patch for snapapi26-0.7.69 :
--- snapapi26.c.old 2013-04-24 01:07:50.000000000 +0200
+++ snapapi26.c 2013-06-05 16:28:32.854930673 +0200
@@ -2172,12 +2172,21 @@
static int start_req_handler_thread(struct session_struct *s)
{
int ret;
-
- ret = kernel_thread(pending_req_handler_thread, s, CLONE_KERNEL);
- if (ret < 0) {
- sa_debug(DEBUG_API, "Can't create thread err=%d.\n", ret);
- return ret;
- }
+ #ifndef USE_KERNEL_THREAD
+ ret = kthread_create(pending_req_handler_thread, s, "snapapid-th");
+ if (IS_ERR(ret)) {
+ ret = IS_ERR(ret);
+ sa_debug(DEBUG_API, "Can't create thread err=%d.\n", ret);
+ return ret;
+ }
+ wake_up_process(ret);
+ #else
+ ret = kernel_thread(pending_req_handler_thread, s, CLONE_KERNEL);
+ if (ret < 0) {
+ sa_debug(DEBUG_API, "Can't create thread err=%d.\n", ret);
+ return ret;
+ }
+ #endif
wait_for_completion(&s->s_pending_queue.pq_done);
return 0;
}

0 Users found this helpful

Hello Stephane Prunier,

Thank you for posting this question in our forum. I am happy to assist you. 

In this article from our knowledge base, you will find this supported Linux environments:

Acronis Backup & Recovery 11.5 Agent for Linux

Acronis Backup & Recovery 11.5 Advanced Server
Acronis Backup & Recovery 11.5 Virtual Edition
Acronis Backup & Recovery 11.5 Server for Linux

  • Linux with kernel 2.4.20 or later (including 3.x kernels) and glibc 2.3.2 or later
  • Various 32-bit (x86) and 64-bit (x86_64) Linux distributions, including:
    • Red Hat Enterprise Linux 4.x, 5.x and 6.x
    • Ubuntu 9.10, 10.04, 10.10, 11.04, 11.10, 12.04
    • Fedora 11, 12, 13, 14, 15, 16, 17
    • SUSE Linux Enterprise Server 10 and 11
    • Debian 4, 5, 6
    • CentOS 5.x, 6.x
    • Oracle Linux 5.x (including UEK), 6.x (including UEK)

Before installing the product on a system that does not use RPM Package Manager, such as an Ubuntu system, you need to install this manager manually; for example, by running the following command (as the root user): apt-get install rpm

If you need additional assistance, please contact support. You will find all available support options in our Customer handbook.

If there is anything else we can do for you, please let me know.

Thank you.