Skip to content

Commit 80cd175

Browse files
NeilBrownsnitm
authored andcommitted
dm crypt: remove BIOSET_NEED_RESCUER flag
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-crypt does allocate from this bioset inside the dm make_request_fn, but does so using GFP_NOWAIT so that the allocation will not block. So BIOSET_NEED_RESCUER is not needed. Signed-off-by: NeilBrown <[email protected]> Signed-off-by: Mike Snitzer <[email protected]>
1 parent c06b3e5 commit 80cd175

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/md/dm-crypt.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2697,8 +2697,7 @@ static int crypt_ctr(struct dm_target *ti, unsigned int argc, char **argv)
26972697
goto bad;
26982698
}
26992699

2700-
cc->bs = bioset_create(MIN_IOS, 0, (BIOSET_NEED_BVECS |
2701-
BIOSET_NEED_RESCUER));
2700+
cc->bs = bioset_create(MIN_IOS, 0, BIOSET_NEED_BVECS);
27022701
if (!cc->bs) {
27032702
ti->error = "Cannot allocate crypt bioset";
27042703
goto bad;

0 commit comments

Comments
 (0)