public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Design-Question: end_that_request_* and bh->b_end_io hooks
@ 2001-07-24 17:20 Carsten Otte
  2001-07-25 17:24 ` tpepper
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Carsten Otte @ 2001-07-24 17:20 UTC (permalink / raw)
  To: jfs-discussion, reiserfs-dev, andrea, sct, linux-kernel,
	mauelshagen
  Cc: Holger Smolinski, Horst Hummel

Hi  Folks,

as you are deeper into block-devices & filesystems than me,
here are my two simple questions in short:
Is it legal for a filesystem (or whatever) to install a hook into
bh->b_end_io
which calls generic_make_request?
Do block drivers need or are they allowed to hold the io_request_lock or
other (local)
locks when calling end_that_request_*?

Rational / Explanation:
We encountered a problem with our block device driver (dasd on arch=s390)
together with JFS:
In our bottom half ,we grab the io_request_lock & disable interrupts and
(among
other stuff) call  end_that_request* for finalized requests. Afterwards we
release
the lock and  enable again.
The problem is, that JFS hooks into bh->b_end_io and calls
generic_make_request then.
Note that generic_make_request grabs the io_request_lock, may call schedule
(in __get_request_wait), and may call the do_request function of the block
device driver.
Do you think that this hook is legal (and we have to change the device
driver to
call end_that_request from outside the bottom half -scheduling in
interrupt!- without
holding the io_request_lock)  or does the fs need to be changed?
Do other filesystems (esp. ReiserFS) require or grab the io_request_lock in
their
b_end_io hooks?

Please CC: answers directly me since I do not read the FS-Lists regulary.

mit freundlichem Gruß / with kind regards
Carsten Otte

IBM Deutschland Entwicklung GmbH
Linux for 390/zSeries Development - Device Driver Team
Phone: +49/07031/16-4076
IBM internal phone: *120-4076
--
We are Linux.
Resistance indicates that you're missing the point!


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

end of thread, other threads:[~2001-07-26  6:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-07-24 17:20 Design-Question: end_that_request_* and bh->b_end_io hooks Carsten Otte
2001-07-25 17:24 ` tpepper
2001-07-25 21:04 ` [Jfs-discussion] " Dave Kleikamp
2001-07-25 21:47   ` Dave Kleikamp
2001-07-26  6:40 ` Jens Axboe

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