Re: [PATCH] block: mq flush: fix race between IPI handler and mq flush worker

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, May 20, 2014 at 11:20:25AM +0800, Ming Lei wrote:
> - the conflict on the two structures just happens with flush
> requests because rq->requeue_work is only used to queue
> flush requests

Once we get non-trivial block drivers we'll need to be able
to requeue arbitrary requests, that's why I added blk_mq_requeue_request.
The scsi-mq work that I plant to submit for the next merge window is
the prime example.

I'd really prefer to avoid breaking that use case if we can avoid it.


Note that the flush code already is very nasy for blk-mq and this just
makes it worse.

One fix that would also help to sort out some of the flush issues would
be to add a list of requests that need requeueing to the blk_mq context,
which we can add requeusts to from irq context.  The next time we run
hw contexts for the queue we'll pick them up in user context and insert
them.

--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]