#define FSprintk(a...)
 
-static DEFINE_RWLOCK(fib_info_lock);
+static DEFINE_SPINLOCK(fib_info_lock);
 static struct hlist_head *fib_info_hash;
 static struct hlist_head *fib_info_laddrhash;
 static unsigned int fib_hash_size;
 
 void fib_release_info(struct fib_info *fi)
 {
-       write_lock_bh(&fib_info_lock);
+       spin_lock_bh(&fib_info_lock);
        if (fi && --fi->fib_treeref == 0) {
                hlist_del(&fi->fib_hash);
                if (fi->fib_prefsrc)
                fi->fib_dead = 1;
                fib_info_put(fi);
        }
-       write_unlock_bh(&fib_info_lock);
+       spin_unlock_bh(&fib_info_lock);
 }
 
 static __inline__ int nh_comp(const struct fib_info *fi, const struct fib_info *ofi)
        struct fib_nh *nh;
        unsigned int hash;
 
-       read_lock(&fib_info_lock);
+       spin_lock(&fib_info_lock);
 
        hash = fib_devindex_hashfn(dev->ifindex);
        head = &fib_info_devhash[hash];
                if (nh->nh_dev == dev &&
                    nh->nh_gw == gw &&
                    !(nh->nh_flags&RTNH_F_DEAD)) {
-                       read_unlock(&fib_info_lock);
+                       spin_unlock(&fib_info_lock);
                        return 0;
                }
        }
 
-       read_unlock(&fib_info_lock);
+       spin_unlock(&fib_info_lock);
 
        return -1;
 }
        unsigned int old_size = fib_hash_size;
        unsigned int i, bytes;
 
-       write_lock_bh(&fib_info_lock);
+       spin_lock_bh(&fib_info_lock);
        old_info_hash = fib_info_hash;
        old_laddrhash = fib_info_laddrhash;
        fib_hash_size = new_size;
        }
        fib_info_laddrhash = new_laddrhash;
 
-       write_unlock_bh(&fib_info_lock);
+       spin_unlock_bh(&fib_info_lock);
 
        bytes = old_size * sizeof(struct hlist_head *);
        fib_hash_free(old_info_hash, bytes);
 
        fi->fib_treeref++;
        atomic_inc(&fi->fib_clntref);
-       write_lock_bh(&fib_info_lock);
+       spin_lock_bh(&fib_info_lock);
        hlist_add_head(&fi->fib_hash,
                       &fib_info_hash[fib_info_hashfn(fi)]);
        if (fi->fib_prefsrc) {
                head = &fib_info_devhash[hash];
                hlist_add_head(&nh->nh_hash, head);
        } endfor_nexthops(fi)
-       write_unlock_bh(&fib_info_lock);
+       spin_unlock_bh(&fib_info_lock);
        return fi;
 
 err_inval: