lkml.org 
[lkml]   [2015]   [Jul]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] block: add a bi_error field to struct bio
On Fri, Jul 24, 2015 at 10:36:45AM -0600, Jens Axboe wrote:
> Right, I don't think we need to do that though. If you look at the flags
> usage, it's all over the map. Some use test/set_bit, some set it just by
> OR'ing the mask. There's no reason we can't make this work without relying
> on set/test_bit, and then shrink it to an unsigned int.

Yes, the current mess doesn't look kosher. The bvec pool bits don't
really make it better.

But do we really need the cmpxchg hack? Seems like most flags aren't
exposed to concurrency at all, althugh this would need a careful audit.


\
 
 \ /
  Last update: 2015-07-28 13:41    [W:0.563 / U:0.144 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site