Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2535713ybe; Thu, 12 Sep 2019 10:53:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqwsZ3bprHuVJRzdWFz1YxWPGjJ9dJvLZjRsC7oMGBZ2UzQj8Jh3bJw+ZDxAIomFAx+kKOUg X-Received: by 2002:a17:906:1e0e:: with SMTP id g14mr21844792ejj.247.1568310807186; Thu, 12 Sep 2019 10:53:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568310807; cv=none; d=google.com; s=arc-20160816; b=eTpPWCbINr17JL8+P6WMu595ylEEHgLQRBT+xZcfHcQKMre5qDWDYaVYY95TcUeu7W 2CnTNxD5kH5Lx3ROvtQdcZaTKLNpG6gDEDZl2/THwLeOOSX8plBbk4DTy9omqUzd8lhH e6RgkZiZgXAY4NeOxr5mX9/Rck+FrCzCxku/Fd+HjNrGP8klTqwi0HCS97q9z+TfS8Yw imqkCIfO6x/b3W7oII+PwJtWGNaBdDFMK+SU4TOdgRHwSi4f8JUv4JmXab1qr0OO/mBr i2Sfb5CA9OuvtTAD9mtQRvNs3UYO7AjnFE14/yRaHIFit7nFDSmvcAZ3uRyN8w+L4IxQ L3tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=+tA8QXKCS8eqj22WQgKFdcuFwrKOxbYR3fR1hN92FIQ=; b=PigQepJVwjTmMhrQUwFWi6wjMR66laZCGWg+x/O1pEk/c24TrD4aCXpacSwhrW/kuD R4YP1f6hBzgEFT212pDwSYfZn3D/QENxqTg/tvPnR0PqL4sEHMCd8rIkRvB8vvoUFndG tsUfm9E3lDYgrB5pZGzpQ1e1cg8Lzhzuyzc+Dl6a74NQ8LjKuRDTse9+BglxbLRh9If4 sAWKtK+wG0D4mz6eT5YWZUXd3sfNcQYx8wWmGP9I8iL/CxhdSHrsGHRXwJOtpGTdwcbd R8gHFSEN/zfboy8yfp7fwmKmiuD1xYf7jPIXd8BabnPO3esBC4pYhPJv46wnF9Bc0soS TYMQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cb1si6308204ejb.112.2019.09.12.10.53.03; Thu, 12 Sep 2019 10:53:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732416AbfILOEK convert rfc822-to-8bit (ORCPT + 99 others); Thu, 12 Sep 2019 10:04:10 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:43871 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731816AbfILOEK (ORCPT ); Thu, 12 Sep 2019 10:04:10 -0400 Received: by mail-pf1-f196.google.com with SMTP id d15so16057825pfo.10; Thu, 12 Sep 2019 07:04:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=UW+vGhhaDwB8JUulVCeUl6DUls9Tf7byS++5Ic4BMgo=; b=IbImnIaLuQTkNHaup7cO4iFl/4wtq1LhVLxPzuAOwvBu0FDAk7pJweK/GP5gB0i5BM ZY0UC3zjiL15oYOzQYpe+OiKIb9nG+W7PIB0o900S0oYNCvcH09EL9HDWqZnfHtVtCEQ 2x9yfi3hRa2FX/Swn3a4fXph/nuAsjymGAzlKafFxsrsEqCHHx6Ki+GA5mFh6i44l0m8 HvGVd4N8CwjsjGA44wkI1N5LlPq/DfiZVjdOsMv6m7tVE8liMtWrjYXxFIHB3Tx0qvu+ Lq0ox/cbO6hCoum0+kyAnGK/ItGdBM3Rh63dC71ms9/HikN4jjaSSsPuRA8zB9FMM8e/ 5ddQ== X-Gm-Message-State: APjAAAW0e4A9gMPet9kw4xHs58deINjSAKSTQgJzyUYjqBU0elO15mOQ k5AE+DT5vG3KwwKu+OHwjSU= X-Received: by 2002:a63:d30c:: with SMTP id b12mr39057704pgg.235.1568297049432; Thu, 12 Sep 2019 07:04:09 -0700 (PDT) Received: from [172.19.249.100] ([38.98.37.138]) by smtp.gmail.com with ESMTPSA id m24sm29696055pfa.37.2019.09.12.07.03.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 12 Sep 2019 07:04:08 -0700 (PDT) Subject: Re: [PATCH 3/3] scsi: core: change function comments to kernel-doc style To: =?UTF-8?Q?Andr=c3=a9_Almeida?= , linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, linux-doc@vger.kernel.org Cc: corbet@lwn.net, kernel@collabora.com, krisman@collabora.com, jejb@linux.ibm.com, martin.petersen@oracle.com References: <20190911203735.1332398-1-andrealmeid@collabora.com> <20190911203735.1332398-3-andrealmeid@collabora.com> From: Bart Van Assche Message-ID: <19eb6b7f-0a62-0e2a-c108-27887b825767@acm.org> Date: Thu, 12 Sep 2019 15:03:44 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190911203735.1332398-3-andrealmeid@collabora.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/11/19 9:37 PM, André Almeida wrote: > +/** > + * scsi_queue_insert - Insert a command in the midlevel queue. > + * @cmd: command that we are adding to queue. > + * @reason: why we are inserting command to queue. > * > - * Returns: Nothing. > + * We do this for one of two cases. Either the host is busy and it cannot accept > + * any more commands for the time being, or the device returned QUEUE_FULL and > + * can accept no more commands. > * > - * Notes: We do this for one of two cases. Either the host is busy > - * and it cannot accept any more commands for the time being, > - * or the device returned QUEUE_FULL and can accept no more > - * commands. > - * Notes: This could be called either from an interrupt context or a > - * normal process context. > + * Context: This could be called either from an interrupt context or a normal > + * process context. > */ What is the midlevel queue? I don't know anyone who still uses that terminology today. Since the switch to scsi-mq we have software queues (if no I/O scheduler has been configured), scheduler queue(s) (if an I/O scheduler has been configured) and hardware queues. > +/** > + * scsi_io_completion - Completion processing for block device I/O requests. > + * @cmd: command that is finished. That looks inconsistent: the function description refers to block device I/O requests while what is being completed is a SCSI command. > + * We will finish off the specified number of sectors. If we are done, the > + * command block will be released and the queue function will be goosed. If we > + * are not done then we have to figure out what to do next: > + * > + * a) We can call scsi_requeue_command(). The request > + * will be unprepared and put back on the queue. Then > + * a new command will be created for it. This should > + * be used if we made forward progress, or if we want > + * to switch from READ(10) to READ(6) for example. I am not aware of any function in the kernel tree that has the name scsi_requeue_command(). Thanks, Bart.