The patch below adds a comment about why it is safe to use in_atomic() in

scst_cmd_atomic() -- the 2.6.29 checkpatch script issues a warning about it.
At the same time, the scst_cmd_atomic() comment has been converted to
kernel-doc style. See also Documentation/kernel-doc-nano-HOWTO.txt for more
information.

Signed-off-by: Bart Van Assche <bart.vanassche@gmail.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@723 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2009-03-26 19:01:28 +00:00
parent 4c8237b73b
commit 766979063e

View File

@@ -2115,7 +2115,13 @@ static inline void scst_sess_set_tgt_priv(struct scst_session *sess,
sess->tgt_priv = val;
}
/* Returns TRUE if cmd is being executed in atomic context */
/**
* Returns TRUE if cmd is being executed in atomic context.
*
* Note: checkpatch will complain on the use of in_atomic() below. You can
* safely ignore this warning since in_atomic() is used here only for debugging
* purposes.
*/
static inline int scst_cmd_atomic(struct scst_cmd *cmd)
{
int res = cmd->atomic;