From: Hugh Dickins Date: Tue, 6 Mar 2007 19:20:11 +0000 (+0000) Subject: [PATCH] suspend regression: sysfs deadlock X-Git-Tag: v2.6.21-rc3~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=266d4f40370757459f8aa063976c932d0de5e59b;p=pandora-kernel.git [PATCH] suspend regression: sysfs deadlock Suspend deadlocks when trying to unregister /sys/block/sr0. This comes from Oliver's commit 94bebf4d1b8e7719f0f3944c037a21cfd99a4af7 "Driver core: fix race in sysfs between sysfs_remove_file() and read()/write()". sysfs_write_file downs buffer->sem while calling flush_write_buffer, and flushing that particular write buffer entails downing buffer->sem in orphan_all_buffers, resulting in the obvious self-deadlock. Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed