From: <vl...@us...> - 2011-03-09 20:21:27
|
Revision: 3272 http://scst.svn.sourceforge.net/scst/?rev=3272&view=rev Author: vlnb Date: 2011-03-09 20:21:18 +0000 (Wed, 09 Mar 2011) Log Message: ----------- Put comments on the places where they supposed to be. Noticed by Alexey Obitotskiy <ale...@op...> Modified Paths: -------------- trunk/scst/src/scst_targ.c Modified: trunk/scst/src/scst_targ.c =================================================================== --- trunk/scst/src/scst_targ.c 2011-03-09 20:17:06 UTC (rev 3271) +++ trunk/scst/src/scst_targ.c 2011-03-09 20:21:18 UTC (rev 3272) @@ -2025,20 +2025,7 @@ 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 @@ 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; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |