]> git.baikalelectronics.ru Git - kernel.git/commit
nfs: initialize the backing_dev_info when creating the server
authorJens Axboe <jens.axboe@oracle.com>
Mon, 21 Sep 2009 07:59:39 +0000 (09:59 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Mon, 21 Sep 2009 13:40:33 +0000 (15:40 +0200)
commitd04887e5c1fec02c1f02d08c36d7521e75ebdf04
tree7ad93edfbba609f7f7a730d66d47950630e203d3
parent5f737401d2823a09c36373c0f389bb6525a4a139
nfs: initialize the backing_dev_info when creating the server

NFS may free the server structure without ever having used the
bdi, so we either need to flag the bdi as being uninitialized or
initialize it up front. This does the latter.

This fixes a crash with mounting more than one NFS file system,
should people ever need that kind of obscure NFS functionality.

Tested-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Acked-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
fs/nfs/client.c