pnfsblock: limit bio page count
authorPeng Tao <bergwolf@gmail.com>
Thu, 12 Jan 2012 15:18:48 +0000 (23:18 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 26 Jan 2012 00:13:37 +0000 (16:13 -0800)
commitb4e8ff2994fa04444d813a3dfd2e8762756a00ec
tree6cbe815d43ccf740ee67cbe0c50f91cbdabd7d2c
parent7e0f9f47b49048c1a809a9bfff85002cb7fbf8e3
pnfsblock: limit bio page count

commit 74a6eeb44ca6174d9cc93b9b8b4d58211c57bc80 upstream.

One bio can have at most BIO_MAX_PAGES pages. We should limit it bec otherwise
bio_alloc will fail when there are many pages in one read/write_pagelist.

Signed-off-by: Peng Tao <peng_tao@emc.com>
Signed-off-by: Benny Halevy <bhalevy@tonian.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/nfs/blocklayout/blocklayout.c