Re: [PATCH] blockdev: fixes race between mount/umount

From: Christoph Hellwig
Date: Sat Mar 05 2005 - 19:14:33 EST


On Fri, Mar 04, 2005 at 03:04:45PM -0500, Jeffrey Mahoney wrote:
> This patch fixes a race between mount and umount in set_blocksize. The results
> can vary between buffer errors and infinite loops in __getblk_slow, and
> possibly others.
>
> The patch makes set_blocksize run under the bdev_lock if it is the sole holder
> of the block device.
>
> Changes:
> - Added missing sync_blockdev in kill_block_super, lost in the shuffle.

Please follow proper kernel codingstyle, thanks.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/