[PATCH 1/3] Fix Crash when IO is being submitted and block size is changed

2012-07-28 Thread Mikulas Patocka
On Thu, 19 Jul 2012, Jeff Moyer wrote: > Mikulas Patocka writes: > > > On Tue, 17 Jul 2012, Jeff Moyer wrote: > > > > >> > This is the patch that fixes this crash: it takes a rw-semaphore around > >> > all direct-IO path. > >> > > >> > (note that if someone is concerned about performance, th

Re: Crash when IO is being submitted and block size is changed

2012-07-19 Thread Jeff Moyer
Mikulas Patocka writes: > On Tue, 17 Jul 2012, Jeff Moyer wrote: > >> > This is the patch that fixes this crash: it takes a rw-semaphore around >> > all direct-IO path. >> > >> > (note that if someone is concerned about performance, the rw-semaphore >> > could be made per-cpu --- take it for r

Re: Crash when IO is being submitted and block size is changed

2012-07-18 Thread Mikulas Patocka
On Tue, 17 Jul 2012, Jeff Moyer wrote: > Mikulas Patocka writes: > > > On Thu, 28 Jun 2012, Jan Kara wrote: > > > >> On Wed 27-06-12 23:04:09, Mikulas Patocka wrote: > >> > The kernel crashes when IO is being submitted to a block device and > >> > block > >> > size of that device is changed

Re: Crash when IO is being submitted and block size is changed

2012-07-17 Thread Jeff Moyer
Mikulas Patocka writes: > On Thu, 28 Jun 2012, Jan Kara wrote: > >> On Wed 27-06-12 23:04:09, Mikulas Patocka wrote: >> > The kernel crashes when IO is being submitted to a block device and block >> > size of that device is changed simultaneously. >> Nasty ;-) >> >> > To reproduce the crash,

Re: Crash when IO is being submitted and block size is changed

2012-07-15 Thread Mikulas Patocka
On Thu, 28 Jun 2012, Jan Kara wrote: > On Wed 27-06-12 23:04:09, Mikulas Patocka wrote: > > The kernel crashes when IO is being submitted to a block device and block > > size of that device is changed simultaneously. > Nasty ;-) > > > To reproduce the crash, apply this patch: > > > > --- li