* Why is O_DIRECT checking deferred?
@ 2002-06-22 18:50 Andreas Dilger
2002-06-24 19:13 ` Andrea Arcangeli
0 siblings, 1 reply; 3+ messages in thread
From: Andreas Dilger @ 2002-06-22 18:50 UTC (permalink / raw)
To: andrea; +Cc: viro, linux-fsdevel
Andrea, Al,
I'm implementing O_DIRECT for our network filesystem, Lustre. One
strange thing I noticed is that we do not check for a_ops->direct_IO
until deep in the read/write path instead of failing at open time.
Since not many filesystem implement O_DIRECT I was going to submit a
patch to generic_direct_IO() which printk's an error if a_ops->direct_IO
is not available, but it would really be better to do this at open
time before allocating the kiobuf.
Cheers, Andreas
--
Andreas Dilger
http://www-mddsp.enel.ucalgary.ca/People/adilger/
http://sourceforge.net/projects/ext2resize/
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: Why is O_DIRECT checking deferred?
@ 2002-06-24 17:31 Lever, Charles
0 siblings, 0 replies; 3+ messages in thread
From: Lever, Charles @ 2002-06-24 17:31 UTC (permalink / raw)
To: 'Andreas Dilger', andrea; +Cc: viro, linux-fsdevel
i wrote a patch that fixed this, and sent it to andrea months ago.
andrea, what is the status of getting that patch included?
> -----Original Message-----
> From: Andreas Dilger [mailto:adilger@clusterfs.com]
> Sent: Saturday, June 22, 2002 2:51 PM
> To: andrea@suse.de
> Cc: viro@math.psu.edu; linux-fsdevel@vger.kernel.org
> Subject: Why is O_DIRECT checking deferred?
>
>
> Andrea, Al,
> I'm implementing O_DIRECT for our network filesystem, Lustre. One
> strange thing I noticed is that we do not check for a_ops->direct_IO
> until deep in the read/write path instead of failing at open time.
>
> Since not many filesystem implement O_DIRECT I was going to submit a
> patch to generic_direct_IO() which printk's an error if
> a_ops->direct_IO
> is not available, but it would really be better to do this at open
> time before allocating the kiobuf.
>
> Cheers, Andreas
> --
> Andreas Dilger
> http://www-mddsp.enel.ucalgary.ca/People/adilger/
> http://sourceforge.net/projects/ext2resize/
>
> -
> To unsubscribe from this list: send the line "unsubscribe
> linux-fsdevel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Why is O_DIRECT checking deferred?
2002-06-22 18:50 Why is O_DIRECT checking deferred? Andreas Dilger
@ 2002-06-24 19:13 ` Andrea Arcangeli
0 siblings, 0 replies; 3+ messages in thread
From: Andrea Arcangeli @ 2002-06-24 19:13 UTC (permalink / raw)
To: viro, linux-fsdevel
On Sat, Jun 22, 2002 at 12:50:35PM -0600, Andreas Dilger wrote:
> Andrea, Al,
> I'm implementing O_DIRECT for our network filesystem, Lustre. One
> strange thing I noticed is that we do not check for a_ops->direct_IO
> until deep in the read/write path instead of failing at open time.
>
> Since not many filesystem implement O_DIRECT I was going to submit a
> patch to generic_direct_IO() which printk's an error if a_ops->direct_IO
> is not available, but it would really be better to do this at open
> time before allocating the kiobuf.
This patch moves the check at open time:
http://www.us.kernel.org/pub/linux/kernel/people/andrea/kernels/v2.4/2.4.19pre10aa4/00_o_direct-open-check-1
Andrea
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-06-24 19:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-22 18:50 Why is O_DIRECT checking deferred? Andreas Dilger
2002-06-24 19:13 ` Andrea Arcangeli
-- strict thread matches above, loose matches on Subject: below --
2002-06-24 17:31 Lever, Charles
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.