lkml.org 
[lkml]   [2011]   [Jun]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
DateTue, 7 Jun 2011 16:03:19 -0700
FromAndrew Morton <>
SubjectRe: [PATCH 07/15] writeback: split inode_wb_list_lock into bdi_writeback.list_lock
On Wed, 08 Jun 2011 05:32:43 +0800
Wu Fengguang <fengguang.wu@intel.com> wrote:

> static void bdev_inode_switch_bdi(struct inode *inode,
> struct backing_dev_info *dst)
> {
> - spin_lock(&inode_wb_list_lock);
> + struct backing_dev_info *old = inode->i_data.backing_dev_info;
> +
> + if (unlikely(dst == old)) /* deadlock avoidance */
> + return;

Why does this occur?


\
 
 \ /
  Last update: 2011-06-08 01:07    [from the cache]
©2003-2010