Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1414910
| From | Pranay Srivastava <pranjas@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 0/4]nbd: fixes for nbd |
| Date | 2016-06-06 13:10 +0200 |
| Message-ID | <rH0zU-47m-25@gated-at.bofh.it> (permalink) |
| References | <rEuut-47w-11@gated-at.bofh.it> <rFCJj-7Au-9@gated-at.bofh.it> <rH0zU-47m-27@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
This got rejected by mailing-list[due to HTML content] so resending it again.
On Sat, Jun 4, 2016 at 10:25 AM, Pranay Srivastava <pranjas@gmail.com> wrote:
>
>
> On Thursday, June 2, 2016, Pranay Kr. Srivastava <pranjas@gmail.com> wrote:
>> This patch series fixes the following
>>
>> 1) fix might_sleep warning on socket shutdown:
>> Fix sock_shutdown to avoid calling kernel_sock_shutdown
>> while holding spin_lock.
>>
>> 2) cleanup nbd_set_socket
>> Cleanup nbd_set_socket to use spin_lock instead of
>> irq version and remove the goto statement in favour
>> of a simple if-else statement.
>>
>> 3) fix various coding standard warnings
>> Make shutdown get called in a process context instead, using
>> system_wq.
>>
>> 4) make nbd device wait for its users.
>> When a timeout or error occurs then nbd driver simply kills
>> the block device. Many filesystem(s) example ext2/ext3 don't
>> expect their buffer heads to disappear like that. Fix this
>> by making nbd device wait for its users.
>>
>> Introduced a new field to check if the device is currently
>> in use or not. This helps to check if the kref_put should
>> be done on device release or not.
>>
>> This field needs to be atomic as the release function may
>> be called from NBD_DO_IT as well as from device's release
>> function.
>>
>> 5) use device_attr macros for sysfs attribute
>> use DEVICE_ATTR_RO for sysfs pid attribute.
>>
>> Changelog for v2:
>> 1) fix might_sleep warning on socket shutdown
>> use bool timedout instead of atomic
>>
>> 2) cleanup nbd_set_socket
>> Added this new patch to this series.
>>
>> 3) fix various coding standard warnings
>> No Change.
>>
>> 4) make nbd device wait for its users
>> Earlier version used to do a final kref put when
>> the kref->counter == 2. This required a check of
>> the internal atomic counter of kref which was ugly.
>>
>> v2 of this patch make this more readable and doesn't
>> do manual check of the internal counter used by kref.
>>
>> 5) use device_attr macros for sysfs attribute
>> No Change.
>>
>> Pranay Kr. Srivastava (5):
>> fix might_sleep warning on socket shutdown.
>> cleanup nbd_set_socket
>> fix various coding standard warnings
>> make nbd device wait for its users.
>> use device_attr macros for sysfs attribute
>>
>> drivers/block/nbd.c | 173
>> +++++++++++++++++++++++++++++++++++++---------------
>> 1 file changed, 124 insertions(+), 49 deletions(-)
>>
>> --
>> 2.6.2
>>
>>
> Markus can you please review this series.
>
> --
> ---P.K.S
>
Can anyone kindly review this series?
--
---P.K.S
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v2 0/5] nbd: fixes for nbd "Pranay Kr. Srivastava" <pranjas@gmail.com> - 2016-06-02 17:30 +0200
[PATCH v2 1/5] nbd: fix might_sleep warning on socket shutdown. "Pranay Kr. Srivastava" <pranjas@gmail.com> - 2016-06-02 17:30 +0200
Re: [PATCH v2 1/5] nbd: fix might_sleep warning on socket shutdown. Pranay Srivastava <pranjas@gmail.com> - 2016-06-09 12:10 +0200
[PATCH v2 4/5]nbd: make nbd device wait for its users. "Pranay Kr. Srivastava" <pranjas@gmail.com> - 2016-06-02 17:30 +0200
[PATCH v2 2/5]nbd: cleanup nbd_set_socket "Pranay Kr. Srivastava" <pranjas@gmail.com> - 2016-06-02 17:30 +0200
[PATCH v2 5/5]nbd: use device_attr macros for sysfs attribute "Pranay Kr. Srivastava" <pranjas@gmail.com> - 2016-06-02 17:30 +0200
[PATCH v2 3/5]nbd: fix various coding standard warnings "Pranay Kr. Srivastava" <pranjas@gmail.com> - 2016-06-02 17:30 +0200
Re: [PATCH 0/4]nbd: fixes for nbd Pranay Srivastava <pranjas@gmail.com> - 2016-06-06 13:10 +0200
csiph-web