Skip to contentSkip to conversation

block_dev.c: fsync() on close() considered harmful

PATCH Christine Ames 1 participant 1 message Feb 25, 2002

lore
Share & tools
lore
#0 lore raw
Quoted 8 lines · Christoph Hellwig [[email protected]] wrote:

Hi Alan,

I don't see any standard specifying that fsync should be done on every blockdevice close.

Any chance you could add the below patch to the next -ac release?

Christoph

I am writing a partitionable block device driver for the 2.4 kernel. Once the driver is loaded and the device mounted, reading, writing, and ioctls work properly.

The driver becomes unstable after many mounts/unmounts, and I have come to suspect that I am not calling fsync_dev() correctly.

I do call fsync_dev() on release as well as on remove. Is this incorrect? Can it lead to instability? I've counted four different ways in which the driver dies, including a call to BUG() in buffer.c...

Thank you,

Christine

__________________________________________________
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com