mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-10-23 07:23:12 +02: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:
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user