From patchwork Wed May 4 02:03:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shenghui Wang X-Patchwork-Id: 9009021 Return-Path: X-Original-To: patchwork-linux-block@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 727859F1C1 for ; Wed, 4 May 2016 02:04:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8DA9C20377 for ; Wed, 4 May 2016 02:04:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 977222010F for ; Wed, 4 May 2016 02:04:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756455AbcEDCEN (ORCPT ); Tue, 3 May 2016 22:04:13 -0400 Received: from smtpbg65.qq.com ([103.7.28.233]:50913 "EHLO smtpbg65.qq.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756112AbcEDCEM (ORCPT ); Tue, 3 May 2016 22:04:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1462327438; bh=ocLkL2zVdmg3b8ckYGwDtYFk65TkJawelx2LtXbmMyY=; h=From:To:Subject:Date:Message-Id; b=gJvjP3OIrl9iLuXZr7/5jrZLuJD7HafRh7864R4ZbTQBCj/Zl03JwgoZQjtQYp/E8 2QEu/ZwoQYnxPqj3jw3lEt6FfLmC78hgJbz2W9rbdXx+lbO0K3HPa8hDsx+hNyrvbP YghDpWgoTG5Fuyg7s3U5ZNydAFuxONyF8JV0D9Nk= X-QQ-mid: esmtp32t1462327436t359t11773 Received: from fedora-vm.hyper-v (unknown [202.225.191.18]) by esmtp4.qq.com (ESMTP) with id ; Wed, 04 May 2016 10:03:46 +0800 (CST) X-QQ-SSF: 0100000000000080F53104000000000 X-QQ-FEAT: AJSgOHJFKspMN7TGCIp/Z3hPtFQaZFtn6IwPoOrSYRPNMNF981axkw6s13z4Q 2xXTo57gx3QIperCFHIgq5MxmQhvUqjGsmMWHR87E7ob3RsJcKVvvUWZn85wyPqfYNT/LX3 qINkWEN9fmvnXSUoOYqL0Lqg5qqR7oWD9kRnCO0V2Ys/cTxi5LzToJ8PTXF6NpVDZ9kQlWn mbuzFzLQDDss/thfkaFIWyg/Nf83KUdreGnF4XQPNfZf/utD7FViUaZJ3/9ppLmE= X-QQ-GoodBg: 0 From: Wang Sheng-Hui To: axboe@kernel.dk, linux-block@vger.kernel.org Subject: [PATCH] block: correct description for blk_execute_rq* in blk-exec.c Date: Wed, 4 May 2016 10:03:44 +0800 Message-Id: <1462327424-4088-1-git-send-email-shhuiw@foxmail.com> X-Mailer: git-send-email 2.7.4 X-QQ-SENDSIZE: 520 X-QQ-Bgrelay: 1 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP blk_execute_rq* has param @at_head to point out head or tail for insertion. No "back" only. Signed-off-by: Wang Sheng-Hui --- block/blk-exec.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/block/blk-exec.c b/block/blk-exec.c index 3fec8a2..44f43cf 100644 --- a/block/blk-exec.c +++ b/block/blk-exec.c @@ -42,8 +42,8 @@ static void blk_end_sync_rq(struct request *rq, int error) * @done: I/O completion handler * * Description: - * Insert a fully prepared request at the back of the I/O scheduler queue - * for execution. Don't wait for completion. + * Insert a fully prepared request at head or tail of the I/O scheduler + * queue for execution. Don't wait for completion. * * Note: * This function will invoke @done directly if the queue is dead. @@ -93,8 +93,8 @@ EXPORT_SYMBOL_GPL(blk_execute_rq_nowait); * @at_head: insert request at head or tail of queue * * Description: - * Insert a fully prepared request at the back of the I/O scheduler queue - * for execution and wait for completion. + * Insert a fully prepared request at head or tail of the I/O scheduler + * queue for execution and wait for completion. */ int blk_execute_rq(struct request_queue *q, struct gendisk *bd_disk, struct request *rq, int at_head)