public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Lou Langholtz <ldl@aros.net>
To: Paul.Clements@steeleye.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] nbd driver for 2.5+: cleanup PARANOIA usage & code
Date: Wed, 25 Jun 2003 12:07:19 -0600	[thread overview]
Message-ID: <3EF9E4D7.10106@aros.net> (raw)
In-Reply-To: <Pine.LNX.4.10.10306251154160.11076-100000@clements.sc.steeleye.com>

Paul Clements wrote:

>On Tue, 24 Jun 2003, Lou Langholtz wrote:
>
>  
>
>>This fifth patch cleans up usage of the PARANOIA sanity checking macro 
>>and code. This patch modifies both drivers/block/nbd.c and 
>>include/linux/nbd.h. It's intended to be applied incrementally on top of 
>>my fourth patch (4.1 really if you count the memset addition as .1's 
>>worth) that simply removed unneeded blksize_bits field. Again, I wanted 
>>to get this smaller change out of the way before my next patch will is 
>>much more major. Comments welcome.
>>    
>>
>
>Lou, any chance you could fix the requests_in, requests_out accounting? 
>What I mean is that _in and _out do not match up if, .e.g, there's an 
>error. This has been broken for a while, but since you're in there 
>touching the code, it might be easy for you to go ahead and fix it. 
>
>BTW, the other patches you've posted look good. I'm glad that you chose
>to avoid the multithreading idea, which would have broken compatibility 
>with older nbd's (and added a lot of complexity to the driver).
>
Hi Paul!

I've also noticed this mismatch. Not sure that this is a bug so much as 
just a question of sematics. I'm not sure what was originally intended 
for with these counters either. My latest patch (patch 6, 6.1 or maybe 
its not till 7) does change this though. Let me know if this change is 
what you're thinking of as a "fix".

With new accounting capabilities in gendisks and request_queues, I'm not 
sure how much use there is left for these request counters anymore. I 
don't know for certain, but I believe these are counted now in the new 
gendisk or request_queue accounting. So I have been eyeing these 
counters for removal (just so you know). Is there still definate use for 
these???

Thanks for looking at the other patches too. The multi-threading idea is 
loosing favor with me so long as I can get the blocking stratedgy 
working when sock is null. And I haven't heard from Steven as to the 
problem he thought they fixed. The blocking code is in my patch 7 
however which I haven't released yet. Wanted to get the ioctl user 
interface issues nailed first (before tackling changing the default 
semantics).


      reply	other threads:[~2003-06-25 17:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-25  4:05 [PATCH] nbd driver for 2.5+: cleanup PARANOIA usage & code Lou Langholtz
2003-06-25 16:01 ` Paul Clements
2003-06-25 18:07   ` Lou Langholtz [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3EF9E4D7.10106@aros.net \
    --to=ldl@aros.net \
    --cc=Paul.Clements@steeleye.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox