Linux block layer
 help / color / mirror / Atom feed
* [PATCH V3 0/2] blk-mq/nvme: cancel request synchronously
@ 2019-04-08  9:40 Ming Lei
  2019-04-08  9:40 ` [PATCH V3 1/2] blk-mq: introduce blk_mq_complete_request_sync() Ming Lei
  2019-04-08  9:40 ` [PATCH V3 2/2] nvme: cancel request synchronously Ming Lei
  0 siblings, 2 replies; 5+ messages in thread
From: Ming Lei @ 2019-04-08  9:40 UTC (permalink / raw)
  To: Jens Axboe
  Cc: linux-block, Ming Lei, Keith Busch, Sagi Grimberg,
	Bart Van Assche, James Smart, Christoph Hellwig, linux-nvme

Hi,

This patchset introduces blk_mq_complete_request_sync() for canceling
request synchronously in error handler context, then one race between
completing request remotely and destroying contoller/queues can be fixed.


V3:
	- avoid extra cost to blk_mq_complete_request

V2:
	- export via EXPORT_SYMBOL_GPL
	- minor commit log change


Ming Lei (2):
  blk-mq: introduce blk_mq_complete_request_sync()
  nvme: cancel request synchronously

 block/blk-mq.c           | 11 +++++++++++
 drivers/nvme/host/core.c |  2 +-
 include/linux/blk-mq.h   |  1 +
 3 files changed, 13 insertions(+), 1 deletion(-)

Cc: Keith Busch <kbusch@kernel.org>
Cc: Sagi Grimberg <sagi@grimberg.me>
Cc: Bart Van Assche <bvanassche@acm.org>
Cc: James Smart <james.smart@broadcom.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: linux-nvme@lists.infradead.org

-- 
2.9.5


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-04-08 16:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-08  9:40 [PATCH V3 0/2] blk-mq/nvme: cancel request synchronously Ming Lei
2019-04-08  9:40 ` [PATCH V3 1/2] blk-mq: introduce blk_mq_complete_request_sync() Ming Lei
2019-04-08 16:15   ` Keith Busch
2019-04-08 16:16     ` Christoph Hellwig
2019-04-08  9:40 ` [PATCH V3 2/2] nvme: cancel request synchronously Ming Lei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox