Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tcm_qla2xxx: Fix incorrect tcm_qla2xxx_drop_tpg() tgt_stopped usage
This patch changes tcm_qla2xxx_drop_tpg() to check for tgt_stop instead of tgt_stopped usage, as tgt_stopped = 1 is expected to be set during normal endpoint shutdown usage. This addresses the following dump_stack() warning during shutdown: [51024.579296] Already in tgt->tgt_stop or tgt_stopped state [51024.585316] Pid: 22371, comm: rmdir Not tainted 2.6.38.3+ torvalds#13 [51024.591754] Call Trace: [51024.594489] [<ffffffffa0308150>] ? qla_tgt_stop_phase1+0x3a/0x27c [qla2xxx] [51024.602350] [<ffffffff810bf56c>] ? free_debug_processing+0x1bd/0x200 [51024.609530] [<ffffffff810d5d5d>] ? dput+0x30/0x14d [51024.614969] [<ffffffffa018dfc5>] ? tcm_qla2xxx_drop_tpg+0x3d/0x6b [tcm_qla2xxx] [51024.623208] [<ffffffffa0105ef2>] ? target_fabric_tpg_release+0x1b/0x1d [target_core_mod] [51024.632327] [<ffffffffa005bd35>] ? config_item_release+0x5a/0x80 [configfs] [51024.640184] [<ffffffffa005bcdb>] ? config_item_release+0x0/0x80 [configfs] [51024.647951] [<ffffffff811aa416>] ? kref_put+0x43/0x4d [51024.653678] [<ffffffffa005bcd9>] ? config_item_put+0x19/0x1b [configfs] [51024.661152] [<ffffffffa005a743>] ? configfs_rmdir+0x1ca/0x231 [configfs] [51024.668712] [<ffffffff810cdcfd>] ? vfs_rmdir+0x7d/0xcb [51024.674540] [<ffffffff810cfce5>] ? do_rmdir+0xa9/0xf8 [51024.680258] [<ffffffff810cfd6b>] ? sys_rmdir+0x11/0x13 [51024.686085] [<ffffffff81002992>] ? system_call_fastpath+0x16/0x1b Reported-by: Roland Dreier <[email protected]> Signed-off-by: Madhuranath Iyengar <[email protected]> Signed-off-by: Nicholas Bellinger <[email protected]>
- Loading branch information