Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1242410 > unrolled thread

Re: [PATCH 3/5] block: nvme-core: simplify ida usage

Started byKeith Busch <keith.busch@intel.com>
First post2015-10-08 16:30 +0200
Last post2015-10-08 16:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH 3/5] block: nvme-core: simplify ida usage Keith Busch <keith.busch@intel.com> - 2015-10-08 16:30 +0200

#1242410 — Re: [PATCH 3/5] block: nvme-core: simplify ida usage

FromKeith Busch <keith.busch@intel.com>
Date2015-10-08 16:30 +0200
SubjectRe: [PATCH 3/5] block: nvme-core: simplify ida usage
Message-ID<qhkmK-67a-19@gated-at.bofh.it>
On Fri, 2 Oct 2015, Johannes Thumshirn wrote:
> Lee Duncan <lduncan@suse.com> writes:
>> Simplify ida index allocation and removal by
>> using the ida_simple_* helper functions.

Looks good to me. Just one comment:

>>  static void nvme_release_instance(struct nvme_dev *dev)
>>  {
>>  	spin_lock(&dev_list_lock);
>> -	ida_remove(&nvme_instance_ida, dev->instance);
>> +	ida_simple_remove(&nvme_instance_ida, dev->instance);
>>  	spin_unlock(&dev_list_lock);

No harm from taking the nvme spin lock here, but it's not necessary with
the simple interface.

> Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
--
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/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web