lkml.org 
[lkml]   [2005]   [Mar]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] blockdev: fixes race between mount/umount
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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:10    [W:0.158 / U:0.508 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site