login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
February
»
10
Re: [patch 3/3] ext2: use perform_write aop
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Nick Piggin
Subject:
Re: [patch 3/3] ext2: use perform_write aop
Date: Friday, February 9, 2007 - 6:34 pm
On Fri, Feb 09, 2007 at 11:45:39AM -0800, Andrew Morton wrote:
quoted text
> On Fri, 9 Feb 2007 11:14:55 -0800 Andrew Morton <akpm@linux-foundation.org> wrote: > > > If so, that might be preventable by leaving the buffer nonuptodate. > > oh, OK, it was buffer_new(), so zeroes are the right thing for a reader to > see. > > But if it wasn't buffer_new() then the appropriate thing for the reader to > see is what's on the disk. But __block_prepare_write() won't read a buffer > which is fully-inside the write area from disk. > > And that's seemingly OK, because if a reader gets in there after the short > copy, that reader will see the non-uptodate buffer and will populate it > from disk. > > But doing that will overwrite the data which the write() caller managed to > copy into the page before it took a fault. And that's not OK because > block_perform_write() does iovec_iterator_advance(i, copied) in this case > and hence will not rerun the copy after acquiring the page lock?
Hmm, yeah. This can be handled by not advancing partially into a !uptodate buffer. -
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:
[rfc][patch 0/3] a faster buffered write deadlock fix?
, Nick Piggin
, (Thu Feb 8, 6:07 am)
[patch 1/3] fs: add an iovec iterator
, Nick Piggin
, (Thu Feb 8, 6:07 am)
[patch 2/3] fs: introduce perform_write aop
, Nick Piggin
, (Thu Feb 8, 6:07 am)
[patch 3/3] ext2: use perform_write aop
, Nick Piggin
, (Thu Feb 8, 6:07 am)
Re: [patch 3/3] ext2: use perform_write aop
, Dmitriy Monakhov
, (Thu Feb 8, 7:47 am)
Re: [patch 1/3] fs: add an iovec iterator
, Christoph Hellwig
, (Thu Feb 8, 12:49 pm)
Re: [patch 1/3] fs: add an iovec iterator
, Mark Fasheh
, (Thu Feb 8, 4:04 pm)
Re: [rfc][patch 0/3] a faster buffered write deadlock fix?
, Mark Fasheh
, (Thu Feb 8, 5:38 pm)
Re: [patch 1/3] fs: add an iovec iterator
, Nick Piggin
, (Thu Feb 8, 6:46 pm)
Re: [patch 1/3] fs: add an iovec iterator
, Nate Diller
, (Thu Feb 8, 7:03 pm)
Re: [rfc][patch 0/3] a faster buffered write deadlock fix?
, Nick Piggin
, (Thu Feb 8, 7:04 pm)
Re: [patch 1/3] fs: add an iovec iterator
, Nick Piggin
, (Thu Feb 8, 8:31 pm)
Re: [rfc][patch 0/3] a faster buffered write deadlock fix?
, Andrew Morton
, (Fri Feb 9, 1:41 am)
Re: [rfc][patch 0/3] a faster buffered write deadlock fix?
, Nick Piggin
, (Fri Feb 9, 2:54 am)
Re: [rfc][patch 0/3] a faster buffered write deadlock fix?
, Andrew Morton
, (Fri Feb 9, 3:09 am)
Re: [rfc][patch 0/3] a faster buffered write deadlock fix?
, Nick Piggin
, (Fri Feb 9, 3:32 am)
Re: [rfc][patch 0/3] a faster buffered write deadlock fix?
, Andrew Morton
, (Fri Feb 9, 3:52 am)
Re: [rfc][patch 0/3] a faster buffered write deadlock fix?
, Nick Piggin
, (Fri Feb 9, 4:31 am)
Re: [rfc][patch 0/3] a faster buffered write deadlock fix?
, Andrew Morton
, (Fri Feb 9, 4:46 am)
Re: [rfc][patch 0/3] a faster buffered write deadlock fix?
, Nick Piggin
, (Fri Feb 9, 5:11 am)
Re: [patch 1/3] fs: add an iovec iterator
, Zach Brown
, (Fri Feb 9, 10:28 am)
Re: [patch 3/3] ext2: use perform_write aop
, Andrew Morton
, (Fri Feb 9, 12:14 pm)
Re: [patch 3/3] ext2: use perform_write aop
, Andrew Morton
, (Fri Feb 9, 12:45 pm)
Re: [patch 3/3] ext2: use perform_write aop
, Nick Piggin
, (Fri Feb 9, 6:34 pm)
Re: [patch 3/3] ext2: use perform_write aop
, Andrew Morton
, (Fri Feb 9, 6:50 pm)
Re: [patch 2/3] fs: introduce perform_write aop
, Christoph Hellwig
, (Fri Mar 9, 3:39 am)
Re: [patch 1/3] fs: add an iovec iterator
, Christoph Hellwig
, (Fri Mar 9, 3:40 am)
Re: [patch 2/3] fs: introduce perform_write aop
, Nick Piggin
, (Fri Mar 9, 5:52 am)
Re: [patch 2/3] fs: introduce perform_write aop
, Anton Altaparmakov
, (Fri Mar 9, 3:01 pm)
Re: [patch 2/3] fs: introduce perform_write aop
, Mark Fasheh
, (Fri Mar 9, 4:33 pm)
Re: [patch 2/3] fs: introduce perform_write aop
, Christoph Hellwig
, (Sat Mar 10, 2:25 am)
Re: [patch 2/3] fs: introduce perform_write aop
, Mark Fasheh
, (Sun Mar 11, 7:13 pm)
Re: [patch 2/3] fs: introduce perform_write aop
, Nick Piggin
, (Wed Mar 14, 6:30 am)
Re: [patch 2/3] fs: introduce perform_write aop
, Christoph Hellwig
, (Wed Mar 14, 8:17 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Rafael J. Wysocki
[Bug #16136] Linux 2.6.34 causes system lockup on Compaq Presario 2200 Laptop
Joerg Roedel
Re: [patch] dma-debug: off by one issue
Tetsuo Handa
Re: [AppArmor #7 0/13] AppArmor security module
Pekka Enberg
Re: BUG in free_block (tainted)
Jakub Narebski
Re: [PATCH] gitweb: Fix shortlog only showing HEAD revision.
git
:
Christian Stimming
git-gui: Fix broken revert confirmation.
Johannes Schindelin
Re: [PATCH 2/2] git-svn: support fetch with autocrlf on
Mark Burton
Re: [PATCH] builtin-branch: highlight current remote branches with an asterisk
Junio C Hamano
Re: git-svnimport
Junio C Hamano
Re: [PATCH 6/6] Teach core object handling functions about gitlinks
linux-netdev
:
Nick Piggin
Re: Kernel WARNING: at net/core/dev.c:1330 __netif_schedule+0x2c/0x98()
Daniel Lezcano
getsockopt(TCP_DEFER_ACCEPT) value change
David Miller
Re: 2.6.27.18: bnx2/tg3: BUG: "scheduling while atomic" trying to ifenslave a seco...
Amit Kumar Salecha
[PATCH NEXT 10/10] qlcnic: add cksum flag
Patrick McHardy
Re: [PATCH RESEND 1/3] netfilter: xtables: inclusion of xt_condition
git-commits-head
:
Linux Kernel Mailing List
ath9k_htc: Allocate URBs properly
Linux Kernel Mailing List
ath9k: Added get_survey callback in order to get channel noise
Linux Kernel Mailing List
ALSA: snd-usb-caiaq: Do not expose hardware input mode 0 of A4DJ
Linux Kernel Mailing List
cpumask: make irq_set_affinity() take a const struct cpumask
Linux Kernel Mailing List
V4L/DVB (9041): Add support YUAN High-Tech STK7700D (1164:1f08)
openbsd-misc
:
Conor
Re: RFID Reader
Josh Grosse
ssh/sshd challenge-response seems to have stopped working in -current
Stuart Henderson
Re: SquidGuard problem
Henning Brauer
Re: 3ware hardware raid support?
Ryan McBride
Re: Packets Per Second Limit?
Colocation donated by:
Syndicate