]> git.baikalelectronics.ru Git - kernel.git/commit
dm io: remove BIOSET_NEED_RESCUER flag from bios bioset
authorNeilBrown <neilb@suse.com>
Tue, 29 Aug 2017 22:10:18 +0000 (08:10 +1000)
committerMike Snitzer <snitzer@redhat.com>
Wed, 13 Dec 2017 17:15:56 +0000 (12:15 -0500)
commit92220e47b5bb3e0bc5b21566c7073552fc1dbe67
tree5b3998ca35e9975081b2ad0c9f03b40d0b6893b0
parent3095cb3f5cf67060522eb96049707d8d50ecbf74
dm io: remove BIOSET_NEED_RESCUER flag from bios bioset

The BIOSET_NEED_RESCUER flag is only needed when a make_request_fn might
do two allocations from the one bioset, and the second one could block
until the first bio completes.

dm_io() is called from make_request_fn() context.  The closest it comes
to multiple allocations is in chunk_io() in dm-snap-persistent.  But
there the code uses a separate thread to avoid problems.

So BIOSET_NEED_RESCUER is not needed.

Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-io.c