From: Greg KH <greg@kroah.com>
To: Paul Clements <paul.clements@us.sios.com>
Cc: andrew morton <akpm@linux-foundation.org>,
kernel list <linux-kernel@vger.kernel.org>,
nbd-general@lists.sourceforge.net
Subject: Re: [PATCH] nbd: new nbd sysfs entries
Date: Wed, 3 Aug 2011 16:50:36 -0700 [thread overview]
Message-ID: <20110803235036.GA18947@kroah.com> (raw)
In-Reply-To: <CAECXXi5Q=NwrD3AsnUp41cX1PpM8Qf468-f_ENi8LDpfgyrotA@mail.gmail.com>
On Wed, Aug 03, 2011 at 07:32:39PM -0400, Paul Clements wrote:
> Description: Add 3 new sysfs entries to nbd.
>
> # cat /sys/block/nbd6/nbd/peer
> 127.0.0.1
> # cat /sys/block/nbd6/nbd/flags
> 0
> # cat /sys/block/nbd6/nbd/xmit_timeout
> 6
Any new sysfs file (or removal or modification) also requires a matching
Documentation/ABI/ file as well. Please include it in this patch (if it
ends up surviving...)
> This patch depends on patch nbd-sysfs-framework.diff
I didn't like that one, it was wrong and I also think you caused a
reference count issue by adding a kobject to that structure...
> Description: Add 3 new sysfs entries to nbd.
>
> # cat /sys/block/nbd6/nbd/peer
> 127.0.0.1
> # cat /sys/block/nbd6/nbd/flags
> 0
> # cat /sys/block/nbd6/nbd/xmit_timeout
> 6
>
> This patch depends on patch nbd-sysfs-framework.diff
>
> From: Paul Clements <paul.clements@steeleye.com>
> Signed-off-by: Paul Clements <paul.clements@steeleye.com>
> ---
>
> nbd.c | 79 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
> 1 file changed, 77 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c
> index 23f3619..44cd41d 100644
> --- a/drivers/block/nbd.c
> +++ b/drivers/block/nbd.c
> @@ -136,7 +136,7 @@ static void sock_shutdown(struct nbd_device *lo, int lock)
> mutex_unlock(&lo->tx_lock);
> }
>
> -static void nbd_xmit_timeout(unsigned long arg)
> +static void xmit_timeout(unsigned long arg)
Why change the name of this function? You now have a function, field,
and sysfs file with that same name, talk about a way to cause confusion
when reading the code :(
greg k-h
prev parent reply other threads:[~2011-08-03 23:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-03 23:32 [PATCH] nbd: new nbd sysfs entries Paul Clements
2011-08-03 23:50 ` Greg KH [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=20110803235036.GA18947@kroah.com \
--to=greg@kroah.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nbd-general@lists.sourceforge.net \
--cc=paul.clements@us.sios.com \
/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