Re: [PATCH 1/2] [RFC] block: replace BKL with global mutex

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Arnd Bergmann
Date: Thursday, April 15, 2010 - 12:11 am

On Thursday 15 April 2010 00:48:19 Douglas Gilbert wrote:


Ok, I missed the nonseekable_open here and assumed someone
might be calling seek on it. I'll use no_llseek then, or
just leave it alone.


Ah, good point. So even if the st driver does not need
any locking against the block layer, it might need to
lock its ioctl against sg.

The most simple solution for this would be to let sg
take both blkdev_mutex and the BKL, which of course
feels like a step backwards.

A better way is to get rid of the BKL in sg, which requires
a better understanding of what it's actually protecting.
It only gets it in the open and ioctl functions, which is a
result of the pushdown from the respective file operations.
Chances are that it's not needed at all, but that's really
hard to tell. Can you shed some more light on this?

	Arnd
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/2] [RFC] block: replace BKL with global mutex, Arnd Bergmann, (Wed Apr 14, 1:36 pm)
[PATCH 2/2] [RFC] Remove BKL from fs/locks.c, Arnd Bergmann, (Wed Apr 14, 1:36 pm)
Re: [PATCH 2/2] [RFC] Remove BKL from fs/locks.c, Trond Myklebust, (Wed Apr 14, 1:52 pm)
Re: [PATCH 2/2] [RFC] Remove BKL from fs/locks.c, J. Bruce Fields, (Wed Apr 14, 2:04 pm)
Re: [PATCH 1/2] [RFC] block: replace BKL with global mutex, Douglas Gilbert, (Wed Apr 14, 3:48 pm)
Re: [PATCH 2/2] [RFC] Remove BKL from fs/locks.c, Brad Boyer, (Wed Apr 14, 9:14 pm)
Re: [PATCH 1/2] [RFC] block: replace BKL with global mutex, Arnd Bergmann, (Thu Apr 15, 12:11 am)
Re: [PATCH 1/2] [RFC] block: replace BKL with global mutex, Douglas Gilbert, (Thu Apr 15, 6:15 am)
Re: [PATCH 2/2] [RFC] Remove BKL from fs/locks.c, Steven Whitehouse, (Thu Apr 15, 7:48 am)
Re: [PATCH 2/2] [RFC] Remove BKL from fs/locks.c, Arnd Bergmann, (Thu Apr 15, 8:17 am)
Re: [PATCH 2/2] [RFC] Remove BKL from fs/locks.c, Arnd Bergmann, (Thu Apr 15, 1:36 pm)
[PATCH] scsi/st: remove BKL from open, Arnd Bergmann, (Thu Apr 15, 1:51 pm)
Re: [PATCH] scsi/st: remove BKL from open, Frederic Weisbecker, (Thu Apr 29, 7:18 pm)