Thread (60 messages) 60 messages, 6 authors, 2018-01-29

Re: [RFC PATCH] blk-mq: fixup RESTART when queue becomes idle

From: Mike Snitzer <hidden>
Date: 2018-01-19 16:47:38
Also in: dm-devel, lkml

On Fri, Jan 19 2018 at 11:41am -0500,
Jens Axboe [off-list ref] wrote:
On 1/19/18 9:37 AM, Ming Lei wrote:
quoted
On Fri, Jan 19, 2018 at 09:27:46AM -0700, Jens Axboe wrote:
quoted
On 1/19/18 9:26 AM, Ming Lei wrote:
quoted
On Fri, Jan 19, 2018 at 09:19:24AM -0700, Jens Axboe wrote:
There are no pending requests for this case, nothing to restart the
queue. When you fail that blk_get_request(), you are idle, nothing
is pending.
I think we needn't worry about that, once a device is attached to
dm-rq, it can't be mounted any more, and usually user don't use the device
directly and by dm-mpath at the same time.
Even if it doesn't happen for a normal dm setup, it is a case that
needs to be handled. The request allocation is just one example of
a wider scope resource that can be unavailable. If the driver returns
NO_DEV_RESOURCE (or whatever name), it will be a possibility that
the device itself is currently idle.
How would a driver's resources be exhausted yet the device is idle (so
as not to be able to benefit from RESTART)?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help