From: Blaisorblade <blaisorblade@yahoo.it>
To: Jens Axboe <axboe@suse.de>
Cc: akpm@osdl.org, jdike@addtoit.com, bstroesser@fujitsu-siemens.com,
linux-kernel@vger.kernel.org,
user-mode-linux-devel@lists.sourceforge.net
Subject: [uml-devel] Re: [patch 7/7] uml ubd: handle readonly status
Date: Mon, 25 Apr 2005 21:20:15 +0200 [thread overview]
Message-ID: <200504252120.15493.blaisorblade@yahoo.it> (raw)
In-Reply-To: <20050425101625.GD1671@suse.de>
On Monday 25 April 2005 12:16, Jens Axboe wrote:
> On Sun, Apr 24 2005, blaisorblade@yahoo.it wrote:
> > @@ -1099,6 +1104,7 @@ static int prepare_request(struct reques
> > if((rq_data_dir(req) == WRITE) && !dev->openflags.w){
> > printk("Write attempted on readonly ubd device %s\n",
> > disk->disk_name);
> > + WARN_ON(1); /* This should be impossible now */
> > end_request(req, 0);
> > return(1);
> > }
>
> I don't think that's a sound change. The WARN_ON() is strictly only
> really useful for when you need the stack trace for something
> interesting. As the io happens async, you will get a boring trace that
> doesn't contain any valuable information.
Ok, removed, and resending the patch, is the rest ok? I.e. is that supposed to
work? I gave a walk around and it seemed that the code handles
set_{disk,device}_ro() even during the open, but I'm no block layer expert.
Thanks for the review.
--
Paolo Giarrusso, aka Blaisorblade
Skype user "PaoloGiarrusso"
Linux registered user n. 292729
http://www.user-mode-linux.org/~blaisorblade
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
next prev parent reply other threads:[~2005-04-25 19:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-24 18:19 [uml-devel] [patch 7/7] uml ubd: handle readonly status blaisorblade
2005-04-25 10:16 ` [uml-devel] " Jens Axboe
2005-04-25 19:20 ` Blaisorblade [this message]
2005-04-26 8:22 ` Jens Axboe
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=200504252120.15493.blaisorblade@yahoo.it \
--to=blaisorblade@yahoo.it \
--cc=akpm@osdl.org \
--cc=axboe@suse.de \
--cc=bstroesser@fujitsu-siemens.com \
--cc=jdike@addtoit.com \
--cc=linux-kernel@vger.kernel.org \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/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