[evms.c]
#ifndef CONFIG_SMP
static spinlock_t evms_request_lock = SPIN_LOCK_UNLOCKED;
#endif
...
#ifdef CONFIG_SMP
blk_dev[EVMS_MAJOR].queue = evms_find_queue;
#else
blk_init_queue(BLK_DEFAULT_QUEUE(EVMS_MAJOR),
evms_do_request_fn, &evms_request_lock);
blk_queue_make_request(BLK_DEFAULT_QUEUE(EVMS_MAJOR),
evms_make_request_fn);
#endif
...
#ifdef CONFIG_SMP
lv->request_lock = SPIN_LOCK_UNLOCKED;
blk_init_queue(&lv->request_queue,
evms_do_request_fn,
&lv->request_lock);
blk_queue_make_request(&lv->request_queue,
evms_make_request_fn);
#endif
What the hell is that about?
-- Jens Axboe- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/