summaryrefslogtreecommitdiff
path: root/drivers/md/Kconfig
diff options
context:
space:
mode:
authorBart Van Assche <bart.vanassche@sandisk.com>2017-04-27 10:11:24 -0700
committerMike Snitzer <snitzer@redhat.com>2017-04-27 17:08:45 -0400
commitca5beb76c32af33e5be4e01c85c8bd5a067c4543 (patch)
treeda891f5543130b6f7ead7bc135d1d203104471eb /drivers/md/Kconfig
parent7e0d574f2683a2346c978613a72ff07afc89b17a (diff)
downloadlwn-ca5beb76c32af33e5be4e01c85c8bd5a067c4543.tar.gz
lwn-ca5beb76c32af33e5be4e01c85c8bd5a067c4543.zip
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 <bart.vanassche@sandisk.com> Reviewed-by: Hannes Reinecke <hare@suse.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/Kconfig')
0 files changed, 0 insertions, 0 deletions