Thread (14 messages) 14 messages, 2 authors, 2017-04-12

Re: [PATCH 5/9] nowait aio: return on congested block device

flat view

From: Goldwyn Rodrigues <hidden>
Date: 2017-04-12 18:31:52
Also in: linux-block, linux-btrfs, linux-ext4, linux-fsdevel, linux-xfs


On 04/12/2017 03:36 AM, Christoph Hellwig wrote:
As mentioned last time around, this should be a REQ_NOWAIT flag so
that it can be easily passed dow? n to the request layer.
quoted
+static inline void bio_wouldblock_error(struct bio *bio)
+{
+	bio->bi_error = -EAGAIN;
+	bio_endio(bio);
+}
Please skip this helper..
Why? It is being called three times?
I am incorporating all the rest of the comments, besides this one. Thanks.
quoted
+#define QUEUE_FLAG_NOWAIT      28	/* queue supports BIO_NOWAIT */
Please make the flag name a little more descriptive, this sounds like
it will never wait.
-- 
Goldwyn
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help