]> git.baikalelectronics.ru Git - kernel.git/commit
dm: introduce dm_accept_partial_bio
authorMikulas Patocka <mpatocka@redhat.com>
Fri, 14 Mar 2014 22:41:24 +0000 (18:41 -0400)
committerMike Snitzer <snitzer@redhat.com>
Tue, 3 Jun 2014 17:44:06 +0000 (13:44 -0400)
commitd0e241fb6cb07d05895c71b0ddcfb539142e78aa
treea1473eb0643c544ac9efa13911d6119a8078ed60
parentbd8280c9497aa9e47bd3e79d661ab86b8a5a1eaa
dm: introduce dm_accept_partial_bio

The function dm_accept_partial_bio allows the target to specify how many
sectors of the current bio it will process.  If the target only wants to
accept part of the bio, it calls dm_accept_partial_bio and the DM core
sends the rest of the data in next bio.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm.c
include/linux/device-mapper.h