Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

John Garry and committed by
Mikulas Patocka
c6a657d9 30b88ed0

+1
+1
drivers/md/dm-io.c
··· 379 379 380 380 atomic_inc(&io->count); 381 381 submit_bio(bio); 382 + WARN_ON_ONCE(opf & REQ_ATOMIC && remaining); 382 383 } while (remaining); 383 384 } 384 385