login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
September
»
17
Re: [PATCH 03/10] Use percpu stats
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Andrew Morton
Subject:
Re: [PATCH 03/10] Use percpu stats
Date: Friday, September 17, 2010 - 1:59 pm
On Wed, 1 Sep 2010 13:51:35 +1000 Anton Blanchard <anton@samba.org> wrote:
quoted text
> > Hi, > > > Also remove references to removed stats (ex: good_comress). > > I'm getting an oops when running mkfs on zram: > > NIP [d0000000030e0340] .zram_inc_stat+0x58/0x84 [zram] > [c00000006d58f720] [d0000000030e091c] .zram_make_request+0xa8/0x6a0 [zram] > [c00000006d58f840] [c00000000035795c] .generic_make_request+0x390/0x434 > [c00000006d58f950] [c000000000357b14] .submit_bio+0x114/0x140 > [c00000006d58fa20] [c000000000361778] .blkdev_issue_discard+0x1ac/0x250 > [c00000006d58fb10] [c000000000361f68] .blkdev_ioctl+0x358/0x7fc > [c00000006d58fbd0] [c0000000001c1c1c] .block_ioctl+0x6c/0x90 > [c00000006d58fc70] [c0000000001984c4] .do_vfs_ioctl+0x660/0x6d4 > [c00000006d58fd70] [c0000000001985a0] .SyS_ioctl+0x68/0xb0 > > Since disksize no longer starts as 0 it looks like we can call > zram_make_request before the device has been initialised. The patch below > fixes the immediate problem but this would go away if we move the > initialisation function elsewhere (as suggested in another thread). > > Signed-off-by: Anton Blanchard <anton@samba.org> > --- > > Index: powerpc.git/drivers/staging/zram/zram_drv.c > =================================================================== > --- powerpc.git.orig/drivers/staging/zram/zram_drv.c 2010-09-01 12:35:14.286515175 +1000 > +++ powerpc.git/drivers/staging/zram/zram_drv.c 2010-09-01 12:35:24.167930504 +1000 > @@ -441,6 +441,12 @@ static int zram_make_request(struct requ > int ret = 0; > struct zram *zram = queue->queuedata; > > + if (unlikely(!zram->init_done)) { > + set_bit(BIO_UPTODATE, &bio->bi_flags); > + bio_endio(bio, 0); > + return 0; > + } > + > if (unlikely(!valid_io_request(zram, bio))) { > zram_inc_stat(zram, ZRAM_STAT_INVALID_IO); > bio_io_error(bio);
So... what happened with this and your other bugfix in zram_reset_device()? --
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] zram: various improvements and cleanups
, Nitin Gupta
, (Mon Aug 9, 10:26 am)
[PATCH 01/10] Replace ioctls with sysfs interface
, Nitin Gupta
, (Mon Aug 9, 10:26 am)
[PATCH 02/10] Remove need for explicit device initialization
, Nitin Gupta
, (Mon Aug 9, 10:26 am)
[PATCH 03/10] Use percpu stats
, Nitin Gupta
, (Mon Aug 9, 10:26 am)
[PATCH 04/10] Use percpu buffers
, Nitin Gupta
, (Mon Aug 9, 10:26 am)
[PATCH 05/10] Reduce per table entry overhead by 4 bytes
, Nitin Gupta
, (Mon Aug 9, 10:26 am)
[PATCH 06/10] Block discard support
, Nitin Gupta
, (Mon Aug 9, 10:26 am)
[PATCH 07/10] Increase compressed page size threshold
, Nitin Gupta
, (Mon Aug 9, 10:26 am)
[PATCH 08/10] Some cleanups
, Nitin Gupta
, (Mon Aug 9, 10:26 am)
[PATCH 09/10] Update zram documentation
, Nitin Gupta
, (Mon Aug 9, 10:26 am)
[PATCH 10/10] Document sysfs entries
, Nitin Gupta
, (Mon Aug 9, 10:26 am)
Re: [PATCH 07/10] Increase compressed page size threshold
, Pekka Enberg
, (Mon Aug 9, 11:32 am)
Re: [PATCH 01/10] Replace ioctls with sysfs interface
, Pekka Enberg
, (Mon Aug 9, 11:34 am)
Re: [PATCH 02/10] Remove need for explicit device initiali ...
, Pekka Enberg
, (Mon Aug 9, 11:36 am)
Re: [PATCH 03/10] Use percpu stats
, Pekka Enberg
, (Mon Aug 9, 11:44 am)
Re: [PATCH 04/10] Use percpu buffers
, Pekka Enberg
, (Mon Aug 9, 11:57 am)
Re: [PATCH 05/10] Reduce per table entry overhead by 4 bytes
, Pekka Enberg
, (Mon Aug 9, 11:59 am)
Re: [PATCH 08/10] Some cleanups
, Pekka Enberg
, (Mon Aug 9, 12:02 pm)
Re: [PATCH 10/10] Document sysfs entries
, Pekka Enberg
, (Mon Aug 9, 12:02 pm)
Re: [PATCH 06/10] Block discard support
, Pekka Enberg
, (Mon Aug 9, 12:03 pm)
Re: [PATCH 06/10] Block discard support
, Jens Axboe
, (Mon Aug 9, 7:23 pm)
Re: [PATCH 01/10] Replace ioctls with sysfs interface
, Nitin Gupta
, (Mon Aug 9, 8:06 pm)
Re: [PATCH 02/10] Remove need for explicit device initiali ...
, Nitin Gupta
, (Mon Aug 9, 8:38 pm)
Re: [PATCH 03/10] Use percpu stats
, Andrew Morton
, (Mon Aug 9, 9:34 pm)
Re: [PATCH 04/10] Use percpu buffers
, Nitin Gupta
, (Mon Aug 9, 9:47 pm)
Re: [PATCH 06/10] Block discard support
, Nitin Gupta
, (Mon Aug 9, 9:54 pm)
Re: [PATCH 05/10] Reduce per table entry overhead by 4 bytes
, Nitin Gupta
, (Mon Aug 9, 9:55 pm)
Re: [PATCH 04/10] Use percpu buffers
, Pekka Enberg
, (Mon Aug 9, 10:05 pm)
Re: [PATCH 04/10] Use percpu buffers
, Nitin Gupta
, (Mon Aug 9, 10:32 pm)
Re: [PATCH 04/10] Use percpu buffers
, Pekka Enberg
, (Tue Aug 10, 12:36 am)
Re: [PATCH 06/10] Block discard support
, Jens Axboe
, (Tue Aug 10, 8:54 am)
Re: [PATCH 03/10] Use percpu stats
, Nitin Gupta
, (Wed Aug 11, 9:39 am)
Re: [PATCH 03/10] Use percpu stats
, Andrew Morton
, (Wed Aug 11, 10:18 am)
Re: [PATCH 03/10] Use percpu stats
, Christoph Lameter
, (Mon Aug 30, 9:20 am)
Re: [PATCH 03/10] Use percpu stats
, Nitin Gupta
, (Tue Aug 31, 1:31 pm)
Re: [PATCH 03/10] Use percpu stats
, Eric Dumazet
, (Tue Aug 31, 2:28 pm)
Re: [PATCH 03/10] Use percpu stats
, Christoph Lameter
, (Tue Aug 31, 2:35 pm)
Re: [PATCH 03/10] Use percpu stats
, Eric Dumazet
, (Tue Aug 31, 2:41 pm)
Re: [PATCH 00/10] zram: various improvements and cleanups
, Greg KH
, (Tue Aug 31, 3:37 pm)
Re: [PATCH 01/10] Replace ioctls with sysfs interface
, Dave Hansen
, (Tue Aug 31, 4:06 pm)
Re: [PATCH 00/10] zram: various improvements and cleanups
, Anton Blanchard
, (Tue Aug 31, 8:32 pm)
Re: [PATCH 03/10] Use percpu stats
, Anton Blanchard
, (Tue Aug 31, 8:41 pm)
Re: [PATCH 03/10] Use percpu stats
, Anton Blanchard
, (Tue Aug 31, 8:51 pm)
Re: [PATCH 03/10] Use percpu stats
, Christoph Lameter
, (Wed Sep 1, 1:05 pm)
Re: [PATCH 03/10] Use percpu stats
, Eric Dumazet
, (Wed Sep 1, 1:38 pm)
Re: [PATCH 03/10] Use percpu stats
, Christoph Lameter
, (Wed Sep 1, 5:34 pm)
[patch -rc] oom: always return a badness score of non-zero ...
, David Rientjes
, (Thu Sep 9, 12:07 pm)
Re: [patch -rc] oom: always return a badness score of non- ...
, Dave Hansen
, (Thu Sep 9, 12:48 pm)
Re: [patch -rc] oom: always return a badness score of non- ...
, David Rientjes
, (Thu Sep 9, 2:00 pm)
Re: [patch -rc] oom: always return a badness score of non- ...
, Dave Hansen
, (Thu Sep 9, 2:10 pm)
Re: [patch -rc] oom: always return a badness score of non- ...
, David Rientjes
, (Thu Sep 9, 2:40 pm)
Re: [PATCH 03/10] Use percpu stats
, Andrew Morton
, (Fri Sep 17, 1:59 pm)
Re: OOM panics with zram
, Nitin Gupta
, (Sun Oct 3, 11:41 am)
Re: OOM panics with zram
, Dave Hansen
, (Sun Oct 3, 12:27 pm)
Re: OOM panics with zram
, Nitin Gupta
, (Sun Oct 3, 12:40 pm)
Re: OOM panics with zram
, Ed Tomlinson
, (Mon Oct 4, 4:08 am)
Re: OOM panics with zram
, Greg KH
, (Tue Oct 5, 4:43 pm)
Re: OOM panics with zram
, Nitin Gupta
, (Tue Oct 5, 7:29 pm)
Re: OOM panics with zram
, Greg KH
, (Tue Oct 5, 7:36 pm)
Re: OOM panics with zram
, Nitin Gupta
, (Tue Oct 5, 9:30 pm)
Re: OOM panics with zram
, Pekka Enberg
, (Wed Oct 6, 12:38 am)
Re: OOM panics with zram
, Greg KH
, (Wed Oct 6, 7:02 am)
Re: OOM panics with zram
, Greg KH
, (Wed Oct 6, 7:03 am)
Re: OOM panics with zram
, Pekka Enberg
, (Wed Oct 6, 7:16 am)
Re: OOM panics with zram
, Nitin Gupta
, (Wed Oct 6, 7:53 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Michael Trimarchi
Re: [PATCH] VFS: make file->f_pos access atomic on 32bit arch
Miklos Szeredi
[patch 14/15] vfs: more path_permission() conversions
Serge E. Hallyn
Re: [RFC v5][PATCH 7/8] Infrastructure for shared objects
Bernd Schmidt
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Takashi Iwai
[PATCH 2/2] input: Add LED support to Synaptics device
git
:
Junio C Hamano
Re: mingw, windows, crlf/lf, and git
Eyvind Bernhardsen
Re: Where has "git ls-remote" reference pattern matching gone?
Shawn O. Pearce
Re: Switching from CVS to GIT
Todd Zullinger
Re: [PATCH 2/2] send-email: rfc2047-quote subject lines with non-ascii characters
Santi Béjar
Re: How to use git-fmt-merge-msg?
linux-netdev
:
Ramkrishna Vepa
[net-2.6 PATCH 1/10] Neterion: New driver: Driver help file
Mark Anthony
invitation / inquiry
Ingo Molnar
Re: [PATCH 08/16] dma-debug: add core checking functions
David Miller
Re: [PATCH 1/3] f_phonet: dev_kfree_skb instead of dev_kfree_skb_any in TX callback
Sascha Hauer
[PATCH 03/12] fec: do not typedef struct types
git-commits-head
:
Linux Kernel Mailing List
amba: struct device - replace bus_id with dev_name(), dev_set_name()
Linux Kernel Mailing List
MIPS: Yosemite: Convert SMP startup lock to arch spinlock.
Linux Kernel Mailing List
ARM: S5PC100: IRQ and timer
Linux Kernel Mailing List
davinci: edma: clear interrupt status for interrupt enabled channels only
Linux Kernel Mailing List
x86, mm, kprobes: fault.c, simplify notify_page_fault()
openbsd-misc
:
Daniel A. Ramaley
Re: [semi-OT] Can anyone recommend an OpenBSD-compatible colour laser printer?
Matthias Kilian
Re: can't get vesa @ 1280x800 or nv
Tobias Ulmer
Re: Problem after upgrade 4.5 to 4.6: ERR M
Philip Guenther
Re: SIGCHLD and libpthread.so
J.C. Roberts
Re: [semi-OT] Can anyone recommend an OpenBSD-compatible colour laser printer?
Colocation donated by:
Syndicate