Re: [PATCH V6 02/11] nvme: pci: cover timeout for admin commands running in EH

2018-05-24 Thread Keith Busch
On Wed, May 16, 2018 at 12:03:04PM +0800, Ming Lei wrote: > +static void nvme_set_host_mem_end_io(struct request *rq, blk_status_t sts) > +{ > + struct completion *waiting = rq->end_io_data; > + > + rq->end_io_data = NULL; > + blk_mq_free_request(rq); > + > + /* > + * complete

[PATCH V6 02/11] nvme: pci: cover timeout for admin commands running in EH

2018-05-15 Thread Ming Lei
When admin commands are used in EH for recovering controller, we have to cover their timeout and can't depend on block's timeout since deadlock may be caused when these commands are timed-out by block layer again. Cc: James Smart Cc: Jianchao Wang