linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Chinner <dgc@sgi.com>
To: Russell Cattelan <cattelan@thebarn.com>
Cc: linux-fsdevel@vger.kernel.org, xfs@oss.sgi.com
Subject: Re: [PATCH] Remove DIO_OWN_LOCKING
Date: Fri, 13 Oct 2006 12:48:30 +1000	[thread overview]
Message-ID: <20061013024830.GF11034@melbourne.sgi.com> (raw)
In-Reply-To: <1160700998.5723.65.camel@xenon.msp.redhat.com>

On Thu, Oct 12, 2006 at 07:56:38PM -0500, Russell Cattelan wrote:
> While trying to fix up GFS2 directio and reading through the code
> involving the various lock flags I discovered the DIO_OWN_LOCKING 
> flag is no longer used.
>  
> XFS recently changed it xfs_vm_direct_IO function to call
> blockdev_direct_IO_no_locking for reads and
> blockdev_direct_IO_own_locking
> for writes. But DIO_OWN_LOCKING is only used in the direct IO read case
> so effectively the flag is never checked an therefore can probably be
> removed.

NACK.

This breaks XFS direct writes - the DIO_OWN_LOCKING flag has meaning
for direct writes even though a simple grep doesn't give you any
hits. get_more_blocks() sets the create flag unconditionally on
writes when DIO_OWN_LOCKING is set, and this is needed for XFS to be
able to allocate underlying blocks if the direct write is over a
hole or past EOF.

Cheers,

Dave.
-- 
Dave Chinner
Principal Engineer
SGI Australian Software Group

  reply	other threads:[~2006-10-13  2:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-13  0:56 [PATCH] Remove DIO_OWN_LOCKING Russell Cattelan
2006-10-13  2:48 ` David Chinner [this message]
2006-10-13 18:09   ` Russell Cattelan
2006-10-15 21:57     ` David Chinner

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=20061013024830.GF11034@melbourne.sgi.com \
    --to=dgc@sgi.com \
    --cc=cattelan@thebarn.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=xfs@oss.sgi.com \
    /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).