Skip to content

Commit c110a4b

Browse files
NeilBrownsnitm
authored andcommitted
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]>
1 parent 80cd175 commit c110a4b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/md/dm-io.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ struct dm_io_client *dm_io_client_create(void)
5858
if (!client->pool)
5959
goto bad;
6060

61-
client->bios = bioset_create(min_ios, 0, (BIOSET_NEED_BVECS |
62-
BIOSET_NEED_RESCUER));
61+
client->bios = bioset_create(min_ios, 0, BIOSET_NEED_BVECS);
6362
if (!client->bios)
6463
goto bad;
6564

0 commit comments

Comments
 (0)