From: Benny Halevy <bhalevy@xxxxxxxxxx> Signed-off-by: Benny Halevy <bhalevy@xxxxxxxxxx> --- fs/nfsd/export.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/nfsd/export.c b/fs/nfsd/export.c index 9585795..a12d7a9 100644 --- a/fs/nfsd/export.c +++ b/fs/nfsd/export.c @@ -402,7 +402,7 @@ static int pnfsd_check_export(struct inode *inode, int *flags) #if defined(CONFIG_SPNFS) #if defined(CONFIG_SPNFS_BLOCK) - if (pnfs_block_enabled(inode, *flags)) { + if (!inode->i_sb->s_pnfs_op && pnfs_block_enabled(inode, *flags)) { dprintk("set pnfs block export structure... \n"); inode->i_sb->s_pnfs_op = &bl_export_ops; } else -- 1.7.6 -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html