mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ming Lei <ming.lei@canonical.com>
To: Jens Axboe <axboe@fb.com>, linux-kernel@vger.kernel.org
Cc: Christoph Hellwig <hch@lst.de>
Subject: [PATCH 0/2] blk-mq: two fixes
Date: Sun,  9 Aug 2015 03:41:49 -0400	[thread overview]
Message-ID: <1439106111-26293-1-git-send-email-ming.lei@canonical.com> (raw)

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



             reply	other threads:[~2015-08-09  7:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-09  7:41 Ming Lei [this message]
2015-08-09  7:41 ` [PATCH 1/2] blk-mq: fix buffer overflow when reading sysfs file of 'pending' Ming Lei
2015-08-09  7:41 ` [PATCH 2/2] blk-mq: fix race between timeout and freeing request Ming Lei
2015-08-15  1:10 ` [PATCH 0/2] blk-mq: two fixes Ming Lei
2015-08-15 15:44   ` Jens Axboe
2015-08-16  9:25     ` Ming Lei

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1439106111-26293-1-git-send-email-ming.lei@canonical.com \
    --to=ming.lei@canonical.com \
    --cc=axboe@fb.com \
    --cc=hch@lst.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®