lkml.org 
[lkml]   [2017]   [Apr]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 5/9] bio-integrity: fold bio_integrity_enabled to bio_integrity_prep
From
Date
On 04/04/2017 08:56 PM, Dmitry Monakhov wrote:
> Currently all integrity prep hooks are open-coded, and if prepare fails
> we ignore it's code and fail bio with EIO. Let's return real error to
> upper layer, so later caller may react accordingly.
>
> In fact no one want to use bio_integrity_prep() w/o bio_integrity_enabled,
> so it is reasonable to fold it in to one function.
>
> Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
> ---
> Documentation/block/data-integrity.txt | 3 --
> block/bio-integrity.c | 88 ++++++++++++++++++----------------
> block/blk-core.c | 5 +-
> block/blk-mq.c | 8 +---
> drivers/nvdimm/blk.c | 13 +----
> drivers/nvdimm/btt.c | 13 +----
> include/linux/bio.h | 6 ---
> 7 files changed, 55 insertions(+), 81 deletions(-)
>
Reviewed-by: Hannes Reinecke <hare@suse.com>

Cheers,

Hannes
--
Dr. Hannes Reinecke Teamlead Storage & Networking
hare@suse.de +49 911 74053 688
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton
HRB 21284 (AG Nürnberg)

\
 
 \ /
  Last update: 2017-04-05 08:38    [W:0.260 / U:0.844 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site