login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
March
»
11
Re: [PATCH 1/4] ide-tape: remove tape->cache_stage
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Borislav Petkov
Subject:
Re: [PATCH 1/4] ide-tape: remove tape->cache_stage
Date: Monday, March 10, 2008 - 11:40 pm
On Tue, Mar 11, 2008 at 12:24:51AM +0100, Bartlomiej Zolnierkiewicz wrote:
quoted text
> On Sunday 09 March 2008, Borislav Petkov wrote: > > Prior to allocating a new pipeline stage, the code checked for the existence of > > a cached pipeline stage to use. Do away with and stick to normal pipeline > > stages only. > > > > Signed-off-by: Borislav Petkov <petkovbb@gmail.com> > > I modified it slightly while merging since AFAICS we still need to check > 'tape->nr_stages >= tape_max_stages' for idetape_add_chrdev_write_request().
Yep, thanks for spotting that landmine. By the way this driver is full of it :).
quoted text
> From: Borislav Petkov <petkovbb@googlemail.com> > Subject: [PATCH 1/4] ide-tape: remove tape->cache_stage > > Prior to allocating a new pipeline stage, the code checked for the existence of > a cached pipeline stage to use. Do away with and stick to normal pipeline > stages only. > > [bart: keep idetape_kmalloc_stage() for now] > > Signed-off-by: Borislav Petkov <petkovbb@gmail.com> > Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> > --- > drivers/ide/ide-tape.c | 13 +------------ > 1 file changed, 1 insertion(+), 12 deletions(-) > > Index: b/drivers/ide/ide-tape.c > =================================================================== > --- a/drivers/ide/ide-tape.c > +++ b/drivers/ide/ide-tape.c > @@ -365,8 +365,6 @@ typedef struct ide_tape_obj { > idetape_stage_t *next_stage; > /* New requests will be added to the pipeline here */ > idetape_stage_t *last_stage; > - /* Optional free stage which we can use */ > - idetape_stage_t *cache_stage; > int pages_per_stage; > /* Wasted space in each stage */ > int excess_bh_size; > @@ -1686,16 +1684,10 @@ abort: > > static idetape_stage_t *idetape_kmalloc_stage(idetape_tape_t *tape) > { > - idetape_stage_t *cache_stage = tape->cache_stage; > - > debug_log(DBG_PROCS, "Enter %s\n", __func__); > > if (tape->nr_stages >= tape->max_stages) > return NULL; > - if (cache_stage != NULL) { > - tape->cache_stage = NULL; > - return cache_stage; > - } > return __idetape_kmalloc_stage(tape, 0, 0); > } > > @@ -3245,10 +3237,7 @@ static int idetape_chrdev_release(struct > else > idetape_wait_for_pipeline(drive); > } > - if (tape->cache_stage != NULL) { > - __idetape_kfree_stage(tape->cache_stage); > - tape->cache_stage = NULL; > - } > + > if (minor < 128 && test_bit(IDETAPE_FLAG_MEDIUM_PRESENT, &tape->flags)) > (void) idetape_rewind_tape(drive); > if (tape->chrdev_dir == IDETAPE_DIR_NONE) {
-- Regards/Gruß, Boris. --
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 0/4] ide-tape: remove pipeline functionality-v2
, Borislav Petkov
, (Sun Mar 9, 10:10 am)
[PATCH 1/4] ide-tape: remove tape->cache_stage
, Borislav Petkov
, (Sun Mar 9, 10:10 am)
[PATCH 2/4] ide-tape: remove pipeline-specific code from i ...
, Borislav Petkov
, (Sun Mar 9, 10:10 am)
[PATCH 3/4] ide-tape remove pipeline speed/control calcula ...
, Borislav Petkov
, (Sun Mar 9, 10:10 am)
[PATCH 4/4] ide-tape: remove pipeline-specific code from i ...
, Borislav Petkov
, (Sun Mar 9, 10:10 am)
Re: [PATCH 0/4] ide-tape: remove pipeline functionality-v2
, Bartlomiej Zolnierki ...
, (Mon Mar 10, 4:24 pm)
Re: [PATCH 1/4] ide-tape: remove tape->cache_stage
, Bartlomiej Zolnierki ...
, (Mon Mar 10, 4:24 pm)
Re: [PATCH 2/4] ide-tape: remove pipeline-specific code fr ...
, Bartlomiej Zolnierki ...
, (Mon Mar 10, 4:25 pm)
Re: [PATCH 3/4] ide-tape remove pipeline speed/control cal ...
, Bartlomiej Zolnierki ...
, (Mon Mar 10, 4:25 pm)
Re: [PATCH 4/4] ide-tape: remove pipeline-specific code fr ...
, Bartlomiej Zolnierki ...
, (Mon Mar 10, 4:25 pm)
Re: [PATCH 1/4] ide-tape: remove tape->cache_stage
, Borislav Petkov
, (Mon Mar 10, 11:40 pm)
Re: [PATCH 2/4] ide-tape: remove pipeline-specific code fr ...
, Borislav Petkov
, (Tue Mar 11, 10:41 pm)
Re: [PATCH 4/4] ide-tape: remove pipeline-specific code fr ...
, Borislav Petkov
, (Tue Mar 11, 10:58 pm)
Re: [PATCH 4/4] ide-tape: remove pipeline-specific code fr ...
, Bartlomiej Zolnierki ...
, (Wed Mar 12, 6:51 am)
Re: [PATCH 2/4] ide-tape: remove pipeline-specific code fr ...
, Bartlomiej Zolnierki ...
, (Wed Mar 12, 6:51 am)
Re: [PATCH 2/4] ide-tape: remove pipeline-specific code fr ...
, Bartlomiej Zolnierki ...
, (Wed Mar 12, 7:31 am)
Re: [PATCH 4/4] ide-tape: remove pipeline-specific code fr ...
, Borislav Petkov
, (Wed Mar 12, 11:19 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Paul Turner
[tg_shares_up rewrite v4 11/11] sched: update tg->shares after cpu.shares write
Matthew Garrett
Re: [PATCH] Enable speedstep for sonoma processors.
Mauro Carvalho Chehab
Re: [PATCH 1/2] media: Add timberdale video-in driver
Peter Zijlstra
[PATCH 23/30] netvm: skb processing
Greg Kroah-Hartman
[PATCH 21/28] cgroupfs: create /sys/fs/cgroup to mount cgroupfs on
git
:
Jan Hudec
Re: GIT push to sftp (feature request)
Steffen Prohaska
[PATCH 0/4] core.ignorecase
Johannes Schindelin
Re: Git checkout preserve timestamp?
Linus Torvalds
[PATCH 1/7] Make unpack_trees_options bit flags actual bitfields
Johan Herland
Re: What's cooking in git.git (Oct 2010, #01; Wed, 13)
linux-netdev
:
David Miller
Re: [PATCH 1/3] f_phonet: dev_kfree_skb instead of dev_kfree_skb_any in TX callback
Richard Cochran
Re: [PATCH v3 3/3] ptp: Added a clock that uses the eTSEC found on the MPC85xx.
Jan Engelhardt
Re: [PATCH] Fix netfilter xt_time's time_mt()'s use of do_div()
Herbert Xu
Re: [RFC PATCH 00/17] virtual-bus
Jeff Kirsher
Re: [net-next-2.6 PATCH] e1000e: don't inadvertently re-set INTX_DISABLE
git-commits-head
:
Linux Kernel Mailing List
ALSA: hda - Enable beep on Realtek codecs with PCI SSID override
Linux Kernel Mailing List
Use path_put() in a few places instead of {mnt,d}put()
Linux Kernel Mailing List
mv643xx_eth: use sw csum for big packets
Linux Kernel Mailing List
arm: fix HAVE_CLK merge goof
Linux Kernel Mailing List
arm: convert pcm037 platform to use smsc911x
freebsd-current
:
David Wolfskill
"interrupt storm..."; seems associated with an0 NIC
Andriy Gapon
Re: letting glabel recognise a media change
Garrett Cooper
Re: Only display ACPI bootmenu key if ACPI is present
Pyun YongHyeon
CFT: msk(4) Rx checksum offloading support
FreeBSD Tinderbox
[head tinderbox] failure on sparc64/sparc64
Colocation donated by:
Syndicate