[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Nbd] [RFC]NBD client's problem



We all know nbd kernel space (in the client side ) send I/O request to
nbd server.
And nbd server get the request and give a response. Then nbd kernel space (in
the client side) get the nbd server's response.

I know nbd kernel's request is a kernel thread like this.

...
                mutex_unlock(&lo->tx_lock);

                thread = kthread_create(nbd_thread, lo, lo->disk->disk_name);
                if (IS_ERR(thread)) {
                        mutex_lock(&lo->tx_lock);
                        return PTR_ERR(thread);
                }
                wake_up_process(thread);
...

But i can not find which nbd kernel thread get the nbd server's response in
the drivers/block/nbd.c codes. Cloud anyone tell me the codes please?
Thanks in advance.

-- 
Thanks
Harry Wei



Reply to: