mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* io_request_lock question (2.2)
@ 2000-12-08  0:17 Reto Baettig
  2000-12-08  0:24 ` Alan Cox
  0 siblings, 1 reply; 13+ messages in thread
From: Reto Baettig @ 2000-12-08  0:17 UTC (permalink / raw)
  To: linux-kernel

Hi

I'm trying to write a block device driver which does some network stuff to satisfy the requests. The problem is, that the network stuff wants to grab the io_request_lock which does not work because this lock is already locked when I come into the request_fn of my device.

I looked at the implementation of the nbd which just calls 

	spin_unlock_irq(&io_request_lock);
	... do network io ...
	spin_lock_irq(&io_request_lock);

This seems to work but it looks very dangerous to me (and ugly, too). Isn't there a better way to do this?

Thanks very much

Reto 

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2000-12-09  1:37 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-08  0:17 io_request_lock question (2.2) Reto Baettig
2000-12-08  0:24 ` Alan Cox
2000-12-08  1:27   ` Reto Baettig
2000-12-08 13:44     ` Alan Cox
2000-12-08 18:22       ` Matthew Jacob
2000-12-08 23:54         ` Alan Cox
2000-12-09  0:03           ` Matthew Jacob
2000-12-09  0:10             ` Reto Baettig
2000-12-09  0:18               ` Matthew Jacob
2000-12-09  0:14             ` Andi Kleen
2000-12-09  0:19               ` Matthew Jacob
2000-12-09  1:06                 ` Andi Kleen
2000-12-09  0:25             ` Alan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®