Re: [PATCH] tgtd: fix leak of task_in_scsi flag

FUJITA Tomonori <[email protected]>
Newsgroups org.kernel.vger.stgt
Message-ID <20140317.144832.1568838937885780027.fujita.tomonori@lab.ntt.co.jp>
On Mon, 17 Mar 2014 12:39:01 +0900
Ryusuke Konishi <[email protected]> wrote:

> When target_mgmt_request() function receives unknown or unsupported
> task management function code or task was already completed for
> ABORT_TASK request, iscsi_tm_execute() and iser_tm_exec() functions
> exit without clearing task_in_scsi flag even though scsi command is
> not in processing.
> 
> This is because the current implementation of target_mgmt_request()
> function returns -EINVAL or -EEXIST for the above cases and
> iscsi_tm_execute() and iser_tm_exec() do not handle these return
> codes.
> 
> This fixes the issue by changing the return value of
> target_mgmt_request() to MGMT_REQ_FAILED for such cases.
> 
> Signed-off-by: Ryusuke Konishi <[email protected]>
> ---
>  usr/target.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.