mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Carsten Otte" <COTTE@de.ibm.com>
To: jfs-discussion@oss.lotus.com, reiserfs-dev@namesys.com,
	andrea@suse.de, sct@dcs.ed.ac.uk, linux-kernel@vger.kernel.org,
	mauelshagen@sistina.com
Cc: "Holger Smolinski" <HSmolinski@de.ibm.com>,
	"Horst Hummel" <Horst.Hummel@de.ibm.com>
Subject: Design-Question: end_that_request_* and bh->b_end_io hooks
Date: Tue, 24 Jul 2001 19:20:46 +0200	[thread overview]
Message-ID: <OF3CC2BFB9.69086721-ONC1256A93.0059C650@de.ibm.com> (raw)

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!


             reply	other threads:[~2001-07-24 17:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-24 17:20 Carsten Otte [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=OF3CC2BFB9.69086721-ONC1256A93.0059C650@de.ibm.com \
    --to=cotte@de.ibm.com \
    --cc=HSmolinski@de.ibm.com \
    --cc=Horst.Hummel@de.ibm.com \
    --cc=andrea@suse.de \
    --cc=jfs-discussion@oss.lotus.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mauelshagen@sistina.com \
    --cc=reiserfs-dev@namesys.com \
    --cc=sct@dcs.ed.ac.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®