From: Stefan Richter Date: Mon, 3 Mar 2014 22:22:35 +0000 (+0100) Subject: firewire: sbp2: protect a reference counter properly X-Git-Tag: omap-for-v3.20/drop-legacy-3517~71^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0765cbd3be699b4a72db67069247d514f06a1e4f;p=pandora-kernel.git firewire: sbp2: protect a reference counter properly The assertion in the comment in sbp2_allow_block() is no longer true. Or maybe it never was true. At least now, the sole caller of sbp2_allow_block(), sbp2_login, can run concurrently to one of sbp2_unblock()'s callers, sbp2_remove. sbp2_login is performed by sbp2_logical_unit.work. sbp2_remove is performed by fw_device.work. sbp2_remove cancels sbp2_logical_unit.work, but only after it called sbp2_unblock. Signed-off-by: Stefan Richter --- Reading git-diff-tree failed