login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
April
»
15
Re: [PATCH] Fix regression in O_DIRECT|O_SYNC writes to block devices
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Jan Kara
Subject:
Re: [PATCH] Fix regression in O_DIRECT|O_SYNC writes to block devices
Date: Thursday, April 15, 2010 - 6:34 am
On Thu 15-04-10 12:42:24, Christoph Hellwig wrote:
quoted text
> On Thu, Apr 15, 2010 at 02:40:39PM +1000, Anton Blanchard wrote: > > int blkdev_fsync(struct file *filp, struct dentry *dentry, int datasync) > > { > > - struct block_device *bdev = I_BDEV(filp->f_mapping->host); > > + struct inode *bd_inode = filp->f_mapping->host; > > + struct block_device *bdev = I_BDEV(bd_inode); > > int error; > > > > + mutex_unlock(&bd_inode->i_mutex); > > + > > error = sync_blockdev(bdev); > > Actually you can just drop this call entirely. sync_blockdev is an > overcomplicated alias for filemap_write_and_wait on the block device > inode, which is exactl what we did just before calling into ->fsync > > It might be worth to still drop i_mutex for the cache flush, though.
Yeah, that's a good point... Anton, just remove sync_blockdev() from blkdev_fsync completely please. Honza -- Jan Kara <jack@suse.cz> SUSE Labs, CR --
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] Fix regression in O_DIRECT|O_SYNC writes to block ...
, Anton Blanchard
, (Wed Apr 14, 9:40 pm)
Re: [PATCH] Fix regression in O_DIRECT|O_SYNC writes to bl ...
, Jan Kara
, (Thu Apr 15, 1:47 am)
Re: [PATCH] Fix regression in O_DIRECT|O_SYNC writes to bl ...
, Jens Axboe
, (Thu Apr 15, 3:04 am)
Re: [PATCH] Fix regression in O_DIRECT|O_SYNC writes to bl ...
, Christoph Hellwig
, (Thu Apr 15, 3:42 am)
Re: [PATCH] Fix regression in O_DIRECT|O_SYNC writes to bl ...
, Jan Kara
, (Thu Apr 15, 6:34 am)
Re: [PATCH] Fix regression in O_DIRECT|O_SYNC writes to bl ...
, Anton Blanchard
, (Mon Apr 19, 7:26 pm)
[PATCH] Fix regression in O_DIRECT|O_SYNC writes to block ...
, Anton Blanchard
, (Mon Apr 19, 7:30 pm)
Re: [PATCH] Fix regression in O_DIRECT|O_SYNC writes to bl ...
, Jan Kara
, (Thu Apr 22, 12:25 pm)
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