Re: [PATCH 07/15] writeback: split inode_wb_list_lock intobdi_writeback.list_lock

From: Andrew Morton
Date: Tue Jun 07 2011 - 19:04:34 EST


On Wed, 08 Jun 2011 05:32:43 +0800
Wu Fengguang <fengguang.wu@xxxxxxxxx> 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?
--
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/