From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754432AbbHIHmC (ORCPT ); Sun, 9 Aug 2015 03:42:02 -0400 Received: from mail-pa0-f51.google.com ([209.85.220.51]:34982 "EHLO mail-pa0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753370AbbHIHmA (ORCPT ); Sun, 9 Aug 2015 03:42:00 -0400 From: Ming Lei To: Jens Axboe , linux-kernel@vger.kernel.org Cc: Christoph Hellwig Subject: [PATCH 0/2] blk-mq: two fixes Date: Sun, 9 Aug 2015 03:41:49 -0400 Message-Id: <1439106111-26293-1-git-send-email-ming.lei@canonical.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jens, The 1st patch fixes one buffer overflow issue when reading sysfs file of hctx's pending. The 2nd patch fixes one race between timeout and request freeing, which also simplifies implementation of blk_mq_tag_to_rq() a lot. block/blk-flush.c | 15 ++++++++++++++- block/blk-mq-sysfs.c | 25 ++++++++++++++++++------- block/blk-mq-tag.c | 4 ++-- block/blk-mq-tag.h | 12 ++++++++++++ block/blk-mq.c | 16 +--------------- block/blk.h | 6 ++++++ 6 files changed, 53 insertions(+), 25 deletions(-) thanks, Ming