On Mon, 7 Apr 2008, FUJITA Tomonori wrote:No, it's brought attention to this interesting slab merge issue; even if in the end we decide that's a non-issue. I don't believe you _need_ a separate sense_slab even for that: what I meant was that you just need something like pool->cmd_slab = kmem_cache_create(pool->cmd_name, cache_line_align( sizeof(struct scsi_cmnd)) + max_scsi_sense_buffersize, 0, pool->slab_flags, NULL); then point cmd->sense_buffer to (unsigned char *) cmd + cache_line_align(sizeof(struct scsi_cmnd)); where cache_line_align and max_scsi_sense_buffersize are preferably determined at runtime. Now, it may well be that over the different configurations, at least some would waste significant memory by putting it all in the one big buffer, and you're better off with the separate slabs: so I didn't want to interfere with your direction on that. Hugh --
| Greg Kroah-Hartman | [PATCH 002/196] Chinese: rephrase English introduction in HOWTO |
| Linus Torvalds | Linux 2.6.27-rc8 |
| Parag Warudkar | BUG: soft lockup - CPU#1 stuck for 15s! [swapper:0] |
| James Bottomley | Re: Integration of SCST in the mainstream Linux kernel |
git: | |
| Jakub Narebski | Re: VCS comparison table |
| Wincent Colaiuta | Re: [ANNOUNCE] GIT 1.5.4 |
| Sam Song | Fwd: [OT] Re: Git via a proxy server? |
| Junio C Hamano | Re: More precise tag following |
| Nick Guenther | Re: Real men don't attack straw men |
| Raimo Niskanen | HP ProLiant DL140 G3 problems |
| Todd Pytel | IDE or SCSI virtual disks for VMWare image? |
| R. Fumione | OpenBSD speed on desktops |
| Patrick McHardy | [NET_SCHED 03/15]: act_api: fix netlink API conversion bug |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Theodore Tso | Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin" |
| Linus Torvalds | Re: [GIT]: Networking |
