public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Michael Mesnier <mmesnier@ece.cmu.edu>
To: linux-kernel@vger.kernel.org, mmesnier@ece.cmu.edu
Subject: delay in block_read_full_page()
Date: Sat, 06 Nov 2004 02:15:46 -0500	[thread overview]
Message-ID: <418C7A22.3000205@ece.cmu.edu> (raw)

Hello,

Please cc: me directly in your response.

I'm running into some trouble with an installable file system I'm 
writing. In myfs_readpage() I simply return block_read_full_page() which 
subsequently calls myfs_get_block().  However, there's a delay before 
the I/O actually gets issued to the device.  Running sync from the 
command line causes the I/O to get issued immediately, so the sync call 
(even it there aren't dirty buffers) also manages to schedule any 
outstanding read I/Os. How should my fs indicate to the vfs that these 
read I/Os need to be issued immediately after my_readpage() is called?

Thanks in advanced,

-Mike

static int myfs_get_block(struct inode *inode, long iblock, struct 
buffer_head *bh_result, int create) {
    bh_result->b_dev = inode->i_dev;
    bh_result->b_blocknr = iblock;
    bh_result->b_state |= (1UL << BH_Mapped);
    return 0;
}

static int myfs_readpage(struct file *file, struct page *page) {
    return block_read_full_page(page,myfs_get_block);
}


             reply	other threads:[~2004-11-06  7:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-06  7:15 Michael Mesnier [this message]
2004-11-07 10:45 ` delay in block_read_full_page() Andrew Morton
2004-11-07 21:49   ` Michael Mesnier

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=418C7A22.3000205@ece.cmu.edu \
    --to=mmesnier@ece.cmu.edu \
    --cc=linux-kernel@vger.kernel.org \
    /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