Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1176026

Re: [PATCH 2/2] ext4: make use of sb_getblk_gfp

From Theodore Ts'o <tytso@mit.edu>
Newsgroups linux.kernel
Subject Re: [PATCH 2/2] ext4: make use of sb_getblk_gfp
Date 2015-07-02 16:20 +0200
Message-ID <pHNvk-3Pj-27@gated-at.bofh.it> (permalink)
References <pGXdo-212-3@gated-at.bofh.it> <pGXdo-212-1@gated-at.bofh.it> <pHG0N-7vH-11@gated-at.bofh.it> <pHG0O-7vH-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Jul 02, 2015 at 09:16:34AM +0300, Nikolay Borisov wrote:
> 
> Just a question that popped to my mind after discussing with a colleague
> - Is GFP_NOFS enough here or should it be GFP_NOIO? Presumably the
> latter is a stronger guarantee that we are not going to hit any
> fs/writeback related code?

GFP_NOFS is fine here; file system code calls the I/O codepaths, but
device driver code doesn't call fs code.  Put another way, if there
are pages that are backed by a block device, which can be cleaned
without going through the FS code paths, it's fine to let that happen
while we are inside file system code.

						- Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [PATCH 2/2] ext4: make use of sb_getblk_gfp Theodore Ts'o <tytso@mit.edu> - 2015-07-02 16:20 +0200

csiph-web