dm io: remove BIOSET_NEED_RESCUER flag from bios bioset
authorNeilBrown <[email protected]>
Tue, 29 Aug 2017 22:10:18 +0000 (08:10 +1000)
committerMike Snitzer <[email protected]>
Wed, 13 Dec 2017 17:15:56 +0000 (12:15 -0500)
commitc110a4b6e603ece6134fe436e84957f7a4cd099e
tree5b3998ca35e9975081b2ad0c9f03b40d0b6893b0
parent80cd17578310dbaf880ae0db9240ad2218c5811a
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 <[email protected]>
Signed-off-by: Mike Snitzer <[email protected]>
drivers/md/dm-io.c