target: add __releases annotation to target_release_cmd_kref
authorChristoph Hellwig <hch@lst.de>
Thu, 26 Mar 2015 11:27:34 +0000 (12:27 +0100)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 26 Mar 2015 21:52:37 +0000 (14:52 -0700)
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_transport.c

index e06c136..4a00ed5 100644 (file)
@@ -2418,6 +2418,7 @@ out:
 EXPORT_SYMBOL(target_get_sess_cmd);
 
 static void target_release_cmd_kref(struct kref *kref)
+               __releases(&se_cmd->se_sess->sess_cmd_lock)
 {
        struct se_cmd *se_cmd = container_of(kref, struct se_cmd, cmd_kref);
        struct se_session *se_sess = se_cmd->se_sess;