mirror of
https://github.com/Dasharo/linux.git
synced 2026-03-06 15:25:10 -08:00
dm-io: Warn on creating multiple atomic write bios for a region
A region should just be for a single atomic write, so warn when we are creating many. This should not occur if request queue limits are properly configured. Signed-off-by: John Garry <john.g.garry@oracle.com> Reviewed-by: Mike Snitzer <snitzer@kernel.org> Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
This commit is contained in:
committed by
Mikulas Patocka
parent
30b88ed06f
commit
c6a657d968
@@ -379,6 +379,7 @@ static void do_region(const blk_opf_t opf, unsigned int region,
|
||||
|
||||
atomic_inc(&io->count);
|
||||
submit_bio(bio);
|
||||
WARN_ON_ONCE(opf & REQ_ATOMIC && remaining);
|
||||
} while (remaining);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user