lkml.org 
[lkml]   [2005]   [Nov]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [NBD] Use per-device semaphore instead of BKL
Herbert Xu wrote:
> On Sun, Nov 20, 2005 at 04:42:23PM -0500, Paul Clements wrote:
>
>>nbd-client -d (disconnect) is the main reason -- this functionality
>>would be broken if we didn't allow ioctls anymore
>
>
> Good point. In fact my initial patch missed a pair of locks around
> this case as well. Here is a patch to move NBD_DISCONNECT outside
> the ioctl_lock and add a tx_lock around it.

Yep, I think that will do it. I'll test these two patches some and let
you know if I see any problems.

Thanks again.

--
Paul

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-11-21 02:16    [W:0.048 / U:0.308 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site