From: Thomas Gleixner Date: Wed, 20 Feb 2013 19:06:20 +0000 (-0500) Subject: btrfs: Init io_lock after cloning btrfs device struct X-Git-Tag: v3.9-rc1~17^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1cba0cdf5e4dbcd9e5fa5b54d7a028e55e2ca057;p=pandora-kernel.git btrfs: Init io_lock after cloning btrfs device struct __btrfs_close_devices() clones btrfs device structs with memcpy(). Some of the fields in the clone are reinitialized, but it's missing to init io_lock. In mainline this goes unnoticed, but on RT it leaves the plist pointing to the original about to be freed lock struct. Initialize io_lock after cloning, so no references to the original struct are left. Reported-and-tested-by: Mike Galbraith Cc: stable@vger.kernel.org Signed-off-by: Thomas Gleixner Signed-off-by: Chris Mason --- Reading git-diff-tree failed