| To: | Olaf Kirch <okir@xxxxxxx> |
|---|---|
| Subject: | Re: [NFS] [PATCH][RFC] use completions instead of sleep_on for rpciod |
| From: | Greg Banks <gnb@xxxxxxxxxxxxxxxxx> |
| Date: | Tue, 10 Feb 2004 12:52:18 +1100 |
| Cc: | Christoph Hellwig <hch@xxxxxx>, netdev@xxxxxxxxxxx, nfs@xxxxxxxxxxxxxxxxxxxxx |
| Organization: | SGI Australian Software Group |
| References: | <20040207144405.GA19416@xxxxxx> <20040209102801.GC21364@xxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
Olaf Kirch wrote:
>
> [...] The code in fs/nfs/unlink.c is probably also racy
> without BKL.
I had cause to poke around there recently, and it's *definitely* racy
without BKL. That file would benefit from several modernisations:
1. move the list of nfs_unlinkdata from a global to a field in nfs_server
2. add a lock in nfs_server for it instead of implicit BKL in
nfs_complete_unlink, nfs_async_unlink, nfs_put_unlinkdata
3. use proper list.h lists
> So if you remove the sunrpc BKL be prepared for lots and lots
> of bug reports :)
Yes but it's worth doing, especially serverside.
Greg.
--
Greg Banks, R&D Software Engineer, SGI Australian Software Group.
I don't speak for SGI.
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Change proxy_arp to respond only for valid neighbours, jamal |
|---|---|
| Next by Date: | Re: [PATCH,RFC] [NET] ALIGN, YOSHIFUJI Hideaki / 吉藤英明 |
| Previous by Thread: | Re: [NFS] [PATCH][RFC] use completions instead of sleep_on forrpciod, trond . myklebust |
| Next by Thread: | Re: [NFS] [PATCH][RFC] use completions instead of sleep_on for rpciod, Olaf Kirch |
| Indexes: | [Date] [Thread] [Top] [All Lists] |