* [RFC/PATCH] block: undeprecate ll_rw_block()
@ 2006-02-06 19:36 Pekka Enberg
2006-02-06 21:07 ` Jens Axboe
0 siblings, 1 reply; 4+ messages in thread
From: Pekka Enberg @ 2006-02-06 19:36 UTC (permalink / raw)
To: linux-kernel; +Cc: Andrew Morton, Jens Axboe, Christoph Hellwig
From: Pekka Enberg <penberg@cs.helsinki.fi>
This patch removes the DEPRECATED comment from ll_rw_block(). The function
is still in active use and there isn't any real replacement for it.
Cc: Andrew Morton <akpm@osdl.org>
Cc: Jens Axboe <axboe@suse.de>
Cc: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
---
fs/buffer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: 2.6/fs/buffer.c
===================================================================
--- 2.6.orig/fs/buffer.c
+++ 2.6/fs/buffer.c
@@ -2830,7 +2830,7 @@ int submit_bh(int rw, struct buffer_head
}
/**
- * ll_rw_block: low-level access to block devices (DEPRECATED)
+ * ll_rw_block: low-level access to block devices
* @rw: whether to %READ or %WRITE or %SWRITE or maybe %READA (readahead)
* @nr: number of &struct buffer_heads in the array
* @bhs: array of pointers to &struct buffer_head
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RFC/PATCH] block: undeprecate ll_rw_block()
2006-02-06 19:36 [RFC/PATCH] block: undeprecate ll_rw_block() Pekka Enberg
@ 2006-02-06 21:07 ` Jens Axboe
2006-02-07 7:20 ` Pekka J Enberg
0 siblings, 1 reply; 4+ messages in thread
From: Jens Axboe @ 2006-02-06 21:07 UTC (permalink / raw)
To: Pekka Enberg; +Cc: linux-kernel, Andrew Morton, Christoph Hellwig
On Mon, Feb 06 2006, Pekka Enberg wrote:
> From: Pekka Enberg <penberg@cs.helsinki.fi>
>
> This patch removes the DEPRECATED comment from ll_rw_block(). The function
> is still in active use and there isn't any real replacement for it.
It is still deprecated, so I think the comment should stay. There are
plenty ways to accomplish what ll_rw_block does (and more efficiently,
array of bh's is not very nice to say the least) and the buffer_head
isn't even an io unit anymore.
--
Jens Axboe
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RFC/PATCH] block: undeprecate ll_rw_block()
2006-02-06 21:07 ` Jens Axboe
@ 2006-02-07 7:20 ` Pekka J Enberg
2006-02-07 7:41 ` Jens Axboe
0 siblings, 1 reply; 4+ messages in thread
From: Pekka J Enberg @ 2006-02-07 7:20 UTC (permalink / raw)
To: Jens Axboe; +Cc: linux-kernel, Andrew Morton, Christoph Hellwig
On Mon, Feb 06 2006, Pekka Enberg wrote:
> > This patch removes the DEPRECATED comment from ll_rw_block(). The function
> > is still in active use and there isn't any real replacement for it.
On Mon, 6 Feb 2006, Jens Axboe wrote:
> It is still deprecated, so I think the comment should stay. There are
> plenty ways to accomplish what ll_rw_block does (and more efficiently,
> array of bh's is not very nice to say the least) and the buffer_head
> isn't even an io unit anymore.
To clarify, what ways are there? When we need to access the data, use
submit_bh() and when we just want the I/O to be done, generic_make_request()?
Pekka
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RFC/PATCH] block: undeprecate ll_rw_block()
2006-02-07 7:20 ` Pekka J Enberg
@ 2006-02-07 7:41 ` Jens Axboe
0 siblings, 0 replies; 4+ messages in thread
From: Jens Axboe @ 2006-02-07 7:41 UTC (permalink / raw)
To: Pekka J Enberg; +Cc: linux-kernel, Andrew Morton, Christoph Hellwig
On Tue, Feb 07 2006, Pekka J Enberg wrote:
> On Mon, Feb 06 2006, Pekka Enberg wrote:
> > > This patch removes the DEPRECATED comment from ll_rw_block(). The function
> > > is still in active use and there isn't any real replacement for it.
>
> On Mon, 6 Feb 2006, Jens Axboe wrote:
> > It is still deprecated, so I think the comment should stay. There are
> > plenty ways to accomplish what ll_rw_block does (and more efficiently,
> > array of bh's is not very nice to say the least) and the buffer_head
> > isn't even an io unit anymore.
>
> To clarify, what ways are there? When we need to access the data, use
> submit_bh() and when we just want the I/O to be done,
> generic_make_request()?
Generally you want to move to using a bio instead of a bh. Once you do
that, you can submit > 1 page of io a lot more efficiently than what
ll_rw_block() is doing. submit_bh() is just a 'wrapper' on top of the
real io interface, your explanation of the two doesn't make sense.
generic_make_request() is typically something a low level driver like md
or dm would use to submit a formed bio to a device, it's not something
you'd expect other parts of the kernel to use. If you look at the newer
io parts in the kernel (in fs/ and mm/), you'll see them using
submit_bio() mostly.
--
Jens Axboe
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-02-07 7:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-06 19:36 [RFC/PATCH] block: undeprecate ll_rw_block() Pekka Enberg
2006-02-06 21:07 ` Jens Axboe
2006-02-07 7:20 ` Pekka J Enberg
2006-02-07 7:41 ` Jens Axboe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).