Skip to content
Commit 97658cdd authored by NeilBrown's avatar NeilBrown
Browse files

md: provide generic support for handling unplug callbacks.



When an md device adds a request to a queue, it can call
mddev_check_plugged.
If this succeeds then we know that the md thread will be woken up
shortly, and ->plug_cnt will be non-zero until then, so some
processing can be delayed.

If it fails, then no unplug callback is expected and the make_request
function needs to do whatever is required to make the request happen.

Signed-off-by: default avatarNeilBrown <neilb@suse.de>
parent 482c0834
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment