Revert to Fedora kernel-2.6.17-1.2187_FC5 patched with vs2.0.2.1; there are too many...
[linux-2.6.git] / net / tux / main.c
index 663ce97..d62263b 100644 (file)
@@ -170,10 +170,10 @@ static int init_queues (int nr_tux_threads)
 
                INIT_LIST_HEAD(&ti->all_requests);
 
-               spin_lock_init(&ti->free_requests_lock);
+               ti->free_requests_lock = SPIN_LOCK_UNLOCKED;
                INIT_LIST_HEAD(&ti->free_requests);
 
-               spin_lock_init(&ti->work_lock);
+               ti->work_lock = SPIN_LOCK_UNLOCKED;
                INIT_LIST_HEAD(&ti->work_pending);
                INIT_LIST_HEAD(&ti->lru);
 
@@ -1197,7 +1197,7 @@ eventloop:
                        if (ret)
                                GOTO_ERR_unlock;
                        addr = (char *)(unsigned long)u_addr;
-                       filp = dentry_open(req->dentry, NULL, O_RDONLY);
+                       filp = dentry_open(req->dentry, O_RDONLY, 0);
                        dget(req->dentry);
                        generic_file_read(filp, addr, req->total_file_len, &ppos);
                        fput(filp);