Messages in this thread | | | Date | Fri, 20 Jan 2012 08:46:56 +0900 | Subject | Re: [PATCHv2] backing-dev: fix wakeup timer races with bdi_unregister() | From | Namjae Jeon <> |
| |
> bdi_debug_unregister(bdi); > - device_unregister(bdi->dev); > + > + spin_lock_bh(&bdi->wb_lock); > bdi->dev = NULL; > + spin_unlock_bh(&bdi->wb_lock); Hi. Would you explain me why you add spinlock in here ? Thanks. > + > + device_unregister(dev); > } > } > EXPORT_SYMBOL(bdi_unregister); > -- > 1.7.7.3 > > -- > 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/ -- 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/
| |