X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=net%2Ftux%2Fmain.c;fp=net%2Ftux%2Fmain.c;h=663ce97379eee2e720864959798545316ba0ce43;hb=16c70f8c1b54b61c3b951b6fb220df250fe09b32;hp=d62263b88ee145984dab78b9d5a9c3fcdc546b34;hpb=4e76c8a9fa413ccc09d3f7f664183dcce3555d57;p=linux-2.6.git diff --git a/net/tux/main.c b/net/tux/main.c index d62263b88..663ce9737 100644 --- a/net/tux/main.c +++ b/net/tux/main.c @@ -170,10 +170,10 @@ static int init_queues (int nr_tux_threads) INIT_LIST_HEAD(&ti->all_requests); - ti->free_requests_lock = SPIN_LOCK_UNLOCKED; + spin_lock_init(&ti->free_requests_lock); INIT_LIST_HEAD(&ti->free_requests); - ti->work_lock = SPIN_LOCK_UNLOCKED; + spin_lock_init(&ti->work_lock); 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, O_RDONLY, 0); + filp = dentry_open(req->dentry, NULL, O_RDONLY); dget(req->dentry); generic_file_read(filp, addr, req->total_file_len, &ppos); fput(filp);