login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
October
»
24
Re: [PATCH 09/10] Change table chaining layout
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Jens Axboe <jens.axboe@...>
To: Geert Uytterhoeven <geert@...>
Cc: Linus Torvalds <torvalds@...>, Boaz Harrosh <bharrosh@...>, Alan Cox <alan@...>, Linux Kernel Development <linux-kernel@...>, <mingo@...>, Linux/m68k <linux-m68k@...>
Subject:
Re: [PATCH 09/10] Change table chaining layout
Date: Wednesday, October 24, 2007 - 5:12 am
On Wed, Oct 24 2007, Geert Uytterhoeven wrote:
quoted text
> On Wed, 24 Oct 2007, Jens Axboe wrote: > > On Tue, Oct 23 2007, Linus Torvalds wrote: > > > My biggest complaint right now is that a lot of users of the sg *filling* > > > functions were mindlessly converted, so we have code like > > > > > > cryptoloop.c: sg_set_page(&sg_in, in_page); > > > cryptoloop.c: sg_in.offset = in_offs; > > > cryptoloop.c: sg_in.length = sz; > > > > > > which is just really stupid, and we should have a function for that. But > > > worse is code like this: > > > > > > ub.c: sg_set_page(sg, virt_to_page(sc->top_sense)); > > > ub.c: sg->offset = (unsigned long)sc->top_sense & (PAGE_SIZE-1); > > > ub.c: sg->length = UB_SENSE_SIZE; > > > > > > which again was converted "line by line" and we actually *do* have a > > > function to do the above three lines as > > > > > > sg_set_buf(sg, sc->top_sense, UB_SENSE_SIZE); > > > > > > where that *single* line is just tons shorter but more importantly, more > > > readable, than the mess that is a brute-force conversion. > > > > I modified sg_set_page() to take a length and offset argument, and > > As it no longer sets the page only, perhaps it's a good idea to rename > sg_set_page() to sg_set()?
sg_set_buf() also sets length and offset, sg_set_page() is just a mirror of that. So I'd prefer to keep the naming. -- Jens Axboe -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 00/10] SG updates
, Jens Axboe
, (Mon Oct 22, 2:10 pm)
[PATCH][SG] fix typo in ps3rom.c
, Arnd Bergmann
, (Tue Oct 23, 10:48 am)
[PATCH 08/10] [SG] Update arch/ to use sg helpers
, Jens Axboe
, (Mon Oct 22, 2:11 pm)
Re: [PATCH 08/10] [SG] Update arch/ to use sg helpers
, Benny Halevy
, (Mon Oct 22, 5:10 pm)
Re: [PATCH 08/10] [SG] Update arch/ to use sg helpers
, Jens Axboe
, (Tue Oct 23, 3:26 am)
[PATCH 07/10] [SG] Update swiotlb to use sg helpers
, Jens Axboe
, (Mon Oct 22, 2:11 pm)
[PATCH 06/10] [SG] Update net/ to use sg helpers
, Jens Axboe
, (Mon Oct 22, 2:11 pm)
Re: [PATCH 06/10] [SG] Update net/ to use sg helpers
, Christian Borntraeger
, (Tue Oct 23, 6:44 am)
Re: [PATCH 06/10] [SG] Update net/ to use sg helpers
, Jens Axboe
, (Tue Oct 23, 6:45 am)
[PATCH 05/10] [SG] Update fs/ to use sg helpers
, Jens Axboe
, (Mon Oct 22, 2:10 pm)
[PATCH 04/10] [SG] Update drivers to use sg helpers
, Jens Axboe
, (Mon Oct 22, 2:10 pm)
Re: [PATCH 04/10] [SG] Update drivers to use sg helpers
, Heiko Carstens
, (Tue Oct 23, 2:28 am)
Re: [PATCH 04/10] [SG] Update drivers to use sg helpers
, Jens Axboe
, (Tue Oct 23, 3:14 am)
Re: [PATCH 04/10] [SG] Update drivers to use sg helpers
, Heiko Carstens
, (Tue Oct 23, 3:16 am)
[PATCH 03/10] [SG] Update crypto/ to sg helpers
, Jens Axboe
, (Mon Oct 22, 2:10 pm)
[PATCH 02/10] [SG] Update block layer to use sg helpers
, Jens Axboe
, (Mon Oct 22, 2:10 pm)
Re: [PATCH 02/10] [SG] Update block layer to use sg helpers
, John Stoffel
, (Tue Oct 23, 10:32 am)
Re: [PATCH 02/10] [SG] Update block layer to use sg helpers
, Heiko Carstens
, (Tue Oct 23, 1:13 am)
Re: [PATCH 02/10] [SG] Update block layer to use sg helpers
, Jens Axboe
, (Tue Oct 23, 1:16 am)
[PATCH] net: fix xfrm build - missing scatterlist.h include
, Heiko Carstens
, (Tue Oct 23, 1:44 am)
Re: [PATCH] net: fix xfrm build - missing scatterlist.h incl...
, Jens Axboe
, (Tue Oct 23, 3:28 am)
[PATCH] fix ll_rw_blk.c build on s390
, Heiko Carstens
, (Tue Oct 23, 1:42 am)
[PATCH 01/10] [SG] Add helpers for manipulating SG entries
, Jens Axboe
, (Mon Oct 22, 2:10 pm)
[PATCH 10/10] Add CONFIG_DEBUG_SG sg validation
, Jens Axboe
, (Mon Oct 22, 2:11 pm)
[PATCH 09/10] Change table chaining layout
, Jens Axboe
, (Mon Oct 22, 2:11 pm)
Re: [PATCH 09/10] Change table chaining layout
, Boaz Harrosh
, (Tue Oct 23, 1:08 pm)
Re: [PATCH 09/10] Change table chaining layout
, Jens Axboe
, (Tue Oct 23, 2:33 pm)
Re: [PATCH 09/10] Change table chaining layout
, Andi Kleen
, (Tue Oct 23, 3:56 pm)
Re: [PATCH 09/10] Change table chaining layout
, Jens Axboe
, (Tue Oct 23, 4:20 pm)
Re: [PATCH 09/10] Change table chaining layout
, Andi Kleen
, (Tue Oct 23, 4:57 pm)
Re: [PATCH 09/10] Change table chaining layout
, Jens Axboe
, (Tue Oct 23, 5:44 pm)
Re: [PATCH 09/10] Change table chaining layout
, Geert Uytterhoeven
, (Mon Oct 22, 3:39 pm)
Re: [PATCH 09/10] Change table chaining layout
, Linus Torvalds
, (Mon Oct 22, 3:49 pm)
Re: [PATCH 09/10] Change table chaining layout
, Alan Cox
, (Mon Oct 22, 4:16 pm)
Re: [PATCH 09/10] Change table chaining layout
, Linus Torvalds
, (Mon Oct 22, 4:44 pm)
Re: [PATCH 09/10] Change table chaining layout
, Alan Cox
, (Mon Oct 22, 5:43 pm)
Re: [PATCH 09/10] Change table chaining layout
, Linus Torvalds
, (Mon Oct 22, 5:47 pm)
Re: [PATCH 09/10] Change table chaining layout
, Boaz Harrosh
, (Tue Oct 23, 5:29 am)
Re: [PATCH 09/10] Change table chaining layout
, Jens Axboe
, (Tue Oct 23, 5:41 am)
Re: [PATCH 09/10] Change table chaining layout
, Ingo Molnar
, (Tue Oct 23, 6:33 am)
Re: [PATCH 09/10] Change table chaining layout
, Jens Axboe
, (Tue Oct 23, 6:56 am)
Re: [PATCH 09/10] Change table chaining layout
, Ingo Molnar
, (Tue Oct 23, 7:27 am)
Re: [PATCH 09/10] Change table chaining layout
, Geert Uytterhoeven
, (Tue Oct 23, 3:23 pm)
Re: [PATCH 09/10] Change table chaining layout
, Jens Axboe
, (Wed Oct 24, 2:56 am)
Re: [PATCH 09/10] Change table chaining layout
, Jens Axboe
, (Tue Oct 23, 5:46 pm)
Re: [PATCH 09/10] Change table chaining layout
, Boaz Harrosh
, (Tue Oct 23, 5:50 am)
Re: [PATCH 09/10] Change table chaining layout
, Jens Axboe
, (Tue Oct 23, 5:55 am)
Re: [PATCH 09/10] Change table chaining layout
, Boaz Harrosh
, (Tue Oct 23, 6:23 am)
Re: [PATCH 09/10] Change table chaining layout
, Linus Torvalds
, (Tue Oct 23, 11:22 am)
Re: [PATCH 09/10] Change table chaining layout
, Rusty Russell
, (Thu Oct 25, 4:40 am)
Re: [PATCH 09/10] Change table chaining layout
, Linus Torvalds
, (Thu Oct 25, 11:40 am)
Re: [PATCH 09/10] Change table chaining layout
, Paul Mackerras
, (Fri Oct 26, 1:01 am)
Re: [PATCH 09/10] Change table chaining layout
, Linus Torvalds
, (Fri Oct 26, 10:52 am)
[RFC PATCH 1/2] sg_ring instead of scatterlist chaining
, Rusty Russell
, (Mon Nov 5, 2:11 am)
Re: [RFC PATCH 1/2] sg_ring instead of scatterlist chaining
, Randy Dunlap
, (Mon Nov 5, 12:40 pm)
[RFC PATCH 2/2] sg_ring instead of scatterlist chaining in v...
, Rusty Russell
, (Mon Nov 5, 2:15 am)
Re: [PATCH 09/10] Change table chaining layout
, Jens Axboe
, (Fri Oct 26, 1:28 pm)
Re: [PATCH 09/10] Change table chaining layout
, Benny Halevy
, (Thu Oct 25, 12:03 pm)
Re: [PATCH 09/10] Change table chaining layout
, Jens Axboe
, (Thu Oct 25, 5:11 am)
Re: [PATCH 09/10] Change table chaining layout
, Rusty Russell
, (Thu Oct 25, 7:54 am)
Re: [PATCH 09/10] Change table chaining layout
, Rusty Russell
, (Thu Oct 25, 8:03 pm)
Re: [PATCH 09/10] Change table chaining layout
, Jens Axboe
, (Wed Oct 24, 4:05 am)
Re: [PATCH 09/10] Change table chaining layout
, Geert Uytterhoeven
, (Wed Oct 24, 5:03 am)
Re: [PATCH 09/10] Change table chaining layout
, Jens Axboe
, (Wed Oct 24, 5:12 am)
Re: [PATCH 09/10] Change table chaining layout
, Linus Torvalds
, (Wed Oct 24, 11:16 am)
Re: [PATCH 09/10] Change table chaining layout
, Olivier Galibert
, (Wed Oct 24, 9:35 am)
Re: [PATCH 09/10] Change table chaining layout
, Jens Axboe
, (Wed Oct 24, 9:38 am)
Re: [PATCH 09/10] Change table chaining layout
, Olivier Galibert
, (Wed Oct 24, 9:45 am)
Re: [PATCH 09/10] Change table chaining layout
, Jens Axboe
, (Tue Oct 23, 6:29 am)
Re: [PATCH 09/10] Change table chaining layout
, Geert Uytterhoeven
, (Tue Oct 23, 3:18 am)
Re: [PATCH 09/10] Change table chaining layout
, David Miller
, (Mon Oct 22, 8:07 pm)
Re: [PATCH 09/10] Change table chaining layout
, Jeff Garzik
, (Mon Oct 22, 5:21 pm)
Re: [PATCH 09/10] Change table chaining layout
, Matt Mackall
, (Mon Oct 22, 5:47 pm)
Re: [PATCH 09/10] Change table chaining layout
, Alan Cox
, (Mon Oct 22, 6:52 pm)
Re: [PATCH 09/10] Change table chaining layout
, Matt Mackall
, (Mon Oct 22, 7:46 pm)
Re: [PATCH 09/10] Change table chaining layout
, Jeff Garzik
, (Mon Oct 22, 8:11 pm)
Re: [PATCH 09/10] Change table chaining layout
, Benny Halevy
, (Mon Oct 22, 5:16 pm)
Re: [PATCH 09/10] Change table chaining layout
, Matt Mackall
, (Mon Oct 22, 4:38 pm)
Re: [PATCH 09/10] Change table chaining layout
, Jens Axboe
, (Mon Oct 22, 3:52 pm)
powerpc: Fix fallout from sg_page() changes
, Olof Johansson
, (Tue Oct 23, 12:09 am)
Re: powerpc: Fix fallout from sg_page() changes
, Jens Axboe
, (Tue Oct 23, 3:13 am)
IB/ehca: Fix sg_page() fallout
, Olof Johansson
, (Tue Oct 23, 12:31 am)
Re: IB/ehca: Fix sg_page() fallout
, Jens Axboe
, (Tue Oct 23, 1:05 am)
Re: IB/ehca: Fix sg_page() fallout
, Olof Johansson
, (Tue Oct 23, 1:54 am)
Re: IB/ehca: Fix sg_page() fallout
, Jens Axboe
, (Tue Oct 23, 3:12 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Heiko Carstens
[patch -mm] s390: struct bin_attribute changes
Andrew Morton
2.6.25-rc2-mm1
Eric W. Biederman
Re: [PATCH] kexec: force x86_64 arches to boot kdump kernels on boot cpu
Jan Engelhardt
intel iommu (Re: -mm merge plans for 2.6.23)
git
:
linux-netdev
:
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Jens Axboe
Re: [BUG] New Kernel Bugs
Andrew Morton
Re: [PATCH] PHYLIB: IRQ event workqueue handling fixes
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
2 users
and
642 guests
online.
Online users
Nelson
bigbear2905
Syndicate