Linux block layer
 help / color / mirror / Atom feed
* [PATCH V4 0/2] blk-mq/nvme: cancel request synchronously
@ 2019-04-08 22:31 Ming Lei
  2019-04-08 22:31 ` [PATCH V4 1/2] blk-mq: introduce blk_mq_complete_request_sync() Ming Lei
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Ming Lei @ 2019-04-08 22:31 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.


V4:
	- drop return value
	- don't handle fake timeout

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           | 7 +++++++
 drivers/nvme/host/core.c | 2 +-
 include/linux/blk-mq.h   | 1 +
 3 files changed, 9 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] 7+ messages in thread

end of thread, other threads:[~2019-04-10 15:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-08 22:31 [PATCH V4 0/2] blk-mq/nvme: cancel request synchronously Ming Lei
2019-04-08 22:31 ` [PATCH V4 1/2] blk-mq: introduce blk_mq_complete_request_sync() Ming Lei
2019-04-09  9:48   ` Christoph Hellwig
2019-04-08 22:31 ` [PATCH V4 2/2] nvme: cancel request synchronously Ming Lei
2019-04-10 15:04 ` [PATCH V4 0/2] blk-mq/nvme: " Ming Lei
2019-04-10 15:30   ` Keith Busch
2019-04-10 15:57 ` Jens Axboe

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