Re: [PATCH] ceph: kstrdup() memory handling

2015-03-22 Thread
> 在 2015年3月22日,00:54,Sanidhya Kashyap 写道: > > Currently, there is no check for the kstrdup() for r_path2, r_path1 and > snapdir_name > as various locations as there is a possibility of failure during memory > pressure. > Therefore, returning ENOMEM where the checks have been missed. > > Signe

Re: [PATCH 1/1] ceph: properly release page upon error

2015-03-22 Thread
> 在 2015年3月21日,05:36,Taesoo Kim 写道: > > When ceph_update_writeable_page fails (including -EAGAIN), it > unlocks (w/ unlock_page) the page but does not 'release' > (w/ page_cache_release) properly. > > Upon error, properly set *pagep to NULL, indicating an error. > > Signed-off-by: Taesoo Kim