]> git.baikalelectronics.ru Git - kernel.git/commit
nilfs2: use GFP_NOIO for bio_alloc instead of GFP_NOWAIT
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Fri, 19 Jun 2009 06:25:42 +0000 (15:25 +0900)
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Mon, 14 Sep 2009 09:27:14 +0000 (18:27 +0900)
commit399da8489429af446d8be035417d502d9cc2bb72
tree40d81fd322b8ed70beba950ab47dbd0b90487936
parent3c47789fb59a14422e6b4951943b2ba45838a735
nilfs2: use GFP_NOIO for bio_alloc instead of GFP_NOWAIT

Alberto Bertogli advised me about bio_alloc() use in nilfs:
On Sat, 13 Jun 2009 22:52:40 -0300, Alberto Bertogli wrote:
> By the way, those bio_alloc()s are using GFP_NOWAIT but it looks
> like they could use at least GFP_NOIO or GFP_NOFS, since the caller
> can (and sometimes do) sleep. The only caller is nilfs_submit_bh(),
> which calls nilfs_submit_seg_bio() which can sleep calling
> wait_for_completion().

This takes in the comment and replaces the use of GFP_NOWAIT flag with
GFP_NOIO.

Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
fs/nilfs2/segbuf.c