linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff Garzik <jeff@garzik.org>
To: Oleg Drokin <green@linuxhacker.ru>
Cc: linux-fsdevel@vger.kernel.org
Subject: Re: [PATCH] Oversight in generic_file_aio_write_nolock
Date: Tue, 07 Apr 2009 13:35:53 -0400	[thread overview]
Message-ID: <49DB8EF9.2040301@garzik.org> (raw)
In-Reply-To: <20090407161608.GA1514155@fiona.linuxhacker.ru>

Oleg Drokin wrote:
> Hello!
> 
>    There seems to be an oversight in generic_file_aio_write_nolock where
>    when we open inode with O_SYNC and O_APPEND, then after we are done the
>    writing, we flush wrong byterange from the file, from original offset for
>    number of bytes written, instead from the actual oppended offset.
>    This can lead to an unexpected data loss should the crash happen soon after
>    such a write was performed.
> 
>    Here is a simple fix, though perhaps we can just throw away the pos argument
>    from the ->aio_write prototype eventually.

Could I ask that you CC patches like this to linux-kernel also?

	Jeff




      reply	other threads:[~2009-04-07 17:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-07 16:16 [PATCH] Oversight in generic_file_aio_write_nolock Oleg Drokin
2009-04-07 17:35 ` Jeff Garzik [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49DB8EF9.2040301@garzik.org \
    --to=jeff@garzik.org \
    --cc=green@linuxhacker.ru \
    --cc=linux-fsdevel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).