From 08c235b86214068583d67bd5e16fa23313fe660f Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Wed, 9 Mar 2011 20:21:18 +0000 Subject: [PATCH] Put comments on the places where they supposed to be. Noticed by Alexey Obitotskiy git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3272 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_targ.c | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/scst/src/scst_targ.c b/scst/src/scst_targ.c index 3d67dfa2a..a56e98618 100644 --- a/scst/src/scst_targ.c +++ b/scst/src/scst_targ.c @@ -2025,20 +2025,7 @@ out_done: goto out; } -/** - * scst_check_local_events() - check if there are any local SCSI events - * - * Description: - * Checks if the command can be executed or there are local events, - * like reservations, pending UAs, etc. Returns < 0 if command must be - * aborted, > 0 if there is an event and command should be immediately - * completed, or 0 otherwise. - * - * !! Dev handlers implementing exec() callback must call this function there - * !! just before the actual command's execution! - * - * On call no locks, no IRQ or IRQ-disabled context allowed. - */ +/* No locks, no IRQ or IRQ-disabled context allowed */ static int scst_persistent_reserve_in_local(struct scst_cmd *cmd) { int rc; @@ -2305,7 +2292,20 @@ out_done: return res; } -/* No locks, no IRQ or IRQ-disabled context allowed */ +/** + * scst_check_local_events() - check if there are any local SCSI events + * + * Description: + * Checks if the command can be executed or there are local events, + * like reservations, pending UAs, etc. Returns < 0 if command must be + * aborted, > 0 if there is an event and command should be immediately + * completed, or 0 otherwise. + * + * !! Dev handlers implementing exec() callback must call this function there + * !! just before the actual command's execution! + * + * On call no locks, no IRQ or IRQ-disabled context allowed. + */ int scst_check_local_events(struct scst_cmd *cmd) { int res, rc;