diff options
author | Bart Van Assche <[email protected]> | 2017-04-27 10:11:24 -0700 |
---|---|---|
committer | Mike Snitzer <[email protected]> | 2017-04-27 17:08:45 -0400 |
commit | ca5beb76c32af33e5be4e01c85c8bd5a067c4543 (patch) | |
tree | da891f5543130b6f7ead7bc135d1d203104471eb /net/unix/af_unix.c | |
parent | 7e0d574f2683a2346c978613a72ff07afc89b17a (diff) |
dm mpath: micro-optimize the hot path relative to MPATHF_QUEUE_IF_NO_PATH
Instead of checking MPATHF_QUEUE_IF_NO_PATH,
MPATHF_SAVED_QUEUE_IF_NO_PATH and the no_flush flag to decide whether
or not to push back a request (or bio) if there are no paths available,
only clear MPATHF_QUEUE_IF_NO_PATH in queue_if_no_path() if no_flush has
not been set. The result is that only a single bit has to be tested in
the hot path to decide whether or not a request must be pushed back and
also that m->lock does not have to be taken in the hot path.
Signed-off-by: Bart Van Assche <[email protected]>
Reviewed-by: Hannes Reinecke <[email protected]>
Signed-off-by: Mike Snitzer <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions