Re: does the request function block

From: Christian Widmer (cwidmer@iiic.ethz.ch)
Date: Tue Aug 28 2001 - 14:15:59 EST


On Tuesday 28 August 2001 20:28, you wrote:
> No they don't. NBD moves the requests to an internal queue when the
> request function is run. The function does not block. The internal
> queue is later emptied by another means, in another context.

ok - does
        result = sock_sendmsg(sock, &msg, size);
block? something in the back of my brains sais yes, but i might be
wrong since i'm new to linux kernel programing. if it does block
nbd blocks. it realeases the io_request_lock lock and calls
nbd_send_req which calls nbd_xmit and that results in a call to
sock_sendmst.

in the documention ob the brbd it sais: that the request function
is allways called in the context of a process doing I/O the kflushd
or the kupdate kernel thread.

-
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/



This archive was generated by hypermail 2b29 : Fri Aug 31 2001 - 21:00:30 EST