Linux-Block Archive on lore.kernel.org
 help / color / Atom feed
From: Yufen Yu <yuyufen@huawei.com>
To: Jens Axboe <axboe@kernel.dk>
Cc: <linux-block@vger.kernel.org>, Ming Lei <ming.lei@redhat.com>,
	"Christoph Hellwig" <hch@infradead.org>,
	Keith Busch <keith.busch@intel.com>,
	"Bart Van Assche" <bvanassche@acm.org>, <stable@vger.kernel.org>
Subject: Re: [PATCH v4] block: fix null pointer dereference in blk_mq_rq_timed_out()
Date: Thu, 26 Sep 2019 21:52:55 +0800
Message-ID: <e910ae23-2daa-1371-fc1e-16988e6e7783@huawei.com> (raw)
In-Reply-To: <9fda0509-0ee5-9f9d-8a37-2d33a097d1bd@kernel.dk>



On 2019/9/26 18:04, Jens Axboe wrote:
> On 9/25/19 2:20 PM, Yufen Yu wrote:
>> diff --git a/block/blk.h b/block/blk.h
>> index ed347f7a97b1..de258e7b9db8 100644
>> --- a/block/blk.h
>> +++ b/block/blk.h
>> @@ -30,6 +30,7 @@ struct blk_flush_queue {
>>    	 */
>>    	struct request		*orig_rq;
>>    	spinlock_t		mq_flush_lock;
>> +	blk_status_t 		rq_status;
>>    };
> Patch looks fine to me, but you should move rq_status to after the
> flush_running_idx member of struct blk_flush_queue, since then it'll
> fill a padding hole instead of adding new ones.
>

Thanks for you good suggestion.

Thanks,
Yufen


  reply index

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-25 12:20 Yufen Yu
2019-09-26 10:04 ` Jens Axboe
2019-09-26 13:52   ` Yufen Yu [this message]
2019-10-09  8:26 ` Jack Wang
2019-10-11  3:16   ` Yufen Yu

Reply instructions:

You may reply publically 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=e910ae23-2daa-1371-fc1e-16988e6e7783@huawei.com \
    --to=yuyufen@huawei.com \
    --cc=axboe@kernel.dk \
    --cc=bvanassche@acm.org \
    --cc=hch@infradead.org \
    --cc=keith.busch@intel.com \
    --cc=linux-block@vger.kernel.org \
    --cc=ming.lei@redhat.com \
    --cc=stable@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

Linux-Block Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-block/0 linux-block/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-block linux-block/ https://lore.kernel.org/linux-block \
		linux-block@vger.kernel.org
	public-inbox-index linux-block

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-block


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git